wait command?

This is a discussion on wait command? within the Game Programming forums, part of the General Programming Boards category; is there a wait command? im trying to work on a game but it goes too fast i would like ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    34

    wait command?

    is there a wait command? im trying to work on a game but it goes too fast i would like it to wait 3-4 seconds before executing code
    Compiler: MSVC++ 6.0

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    There's the sleep functon...

    include windows.h and call

    Sleep(1000);

    You pass the amount of miliseconds you want to pause the thread....so in the above I pause it for 1 second

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    34
    thx gonna test it now
    Compiler: MSVC++ 6.0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. Replies: 0
    Last Post: 10-06-2007, 01:25 PM
  3. problem with "touch" command in c program
    By Moony in forum C Programming
    Replies: 10
    Last Post: 08-01-2006, 09:56 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. exe files in -c- language
    By enjoy in forum C Programming
    Replies: 6
    Last Post: 05-18-2004, 04:36 PM

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