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

    mgb_phys

    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

    rcgldr

    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 Discussions: C++ Time Delay
  1. Time Delay in C++. (Replies: 18)

  2. C++ time (Replies: 4)

Loading...