Use a delay function

This is a discussion on Use a delay function within the C++ Programming forums, part of the General Programming Boards category; Sleep is a delay function. i.e. Sleep(1); will delay for 1 second But, how do you get the program to ...

  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, 12:45 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21