Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C++ Time Delay

  1. Nov 18, 2009 #1
    Hi there PF. I was wondering if there was a C++ command that delayed a command being run for a certain period of time. I'm trying to make a program that outputs the lyrics to a song at the right times.
  2. jcsd
  3. Nov 18, 2009 #2


    User Avatar
    Science Advisor
    Homework Helper

    Sleep(number of milliseconds)
  4. Nov 18, 2009 #3
    I'll give it try, thanks!
  5. Nov 19, 2009 #4


    User Avatar
    Homework Helper

  6. Nov 19, 2009 #5
    Neat, I'll have a look at that too.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Delay Date
Time delay for Persistant HTTP Oct 26, 2013
C/ C++time delay problem Mar 22, 2013
Write file delay in Fortran Feb 22, 2013
A timer Interrupt to cause delay Nov 27, 2008
Time delay problem for project Sep 21, 2006