sleep() or delay() headers?

This is a discussion on sleep() or delay() headers? within the C++ Programming forums, part of the General Programming Boards category; Does anyone know what header the sleep() or delay() functions are in? EDIT 1: "in" added (;...

  1. #1
    Registered User Gnoober's Avatar
    Join Date
    Oct 2002
    Posts
    40

    sleep() or delay() headers?

    Does anyone know what header the sleep() or delay() functions are in?

    EDIT 1: "in" added (;
    - Grady (:

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    46
    don't know if this helps but i just did a man 3 on sleep & it's in the #include <unistd.h> header. But that's a unix lib so...

  3. #3
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    _sleep(milliseconds) is defined in <stdlib.h>

    Sleep(milliseconds) is defined in <windows.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 08:26 PM
  2. making my program sleep / wait / delay...
    By bobthebullet990 in forum C++ Programming
    Replies: 4
    Last Post: 08-13-2006, 11:14 AM
  3. Create a delay without using Sleep
    By Bag a Bones in forum C++ Programming
    Replies: 12
    Last Post: 01-25-2006, 10:35 PM
  4. delay or sleep?
    By GanglyLamb in forum C Programming
    Replies: 17
    Last Post: 12-12-2002, 11:46 PM
  5. program delay (sleep)
    By rxg00u in forum C++ Programming
    Replies: 5
    Last Post: 04-16-2002, 01:54 PM

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