Thread: Use a delay function

  1. #1
    Registered User Robert_Ingleby's Avatar
    Join Date
    Oct 2001
    Posts
    57

    Use a delay function

    Sleep is a delay function.

    i.e. Sleep(1); will delay for 1 second

    But, how do you get the program to sleep for less than 1 second.

    Sleep (.5); does not sleep for half a second, the smallestnumber here has to be 1 but that is too slow.

    Hope you can help.

  2. #2
    Registered User Robert_Ingleby's Avatar
    Join Date
    Oct 2001
    Posts
    57

    Sorted

    OK You use DELAY, Doh!

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    30
    Hey! that's my catchphrase!
    Homer

    D'OH!

    mmmmmmmm... iterations

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  4. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  5. Time delay function
    By sundeeptuteja in forum C++ Programming
    Replies: 4
    Last Post: 02-10-2003, 05:17 AM