Thread: Where the heck is sleep()?

  1. #1
    Registered User Credo's Avatar
    Join Date
    Feb 2002
    Posts
    3

    Question Where the heck is sleep()?

    What library is "sleep()" in. If it helps, I'm using visual c++.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    stdlib.h
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User Credo's Avatar
    Join Date
    Feb 2002
    Posts
    3
    Thanks.

  4. #4
    Muneeb
    Guest

    Red face

    The sleep in visual c++ starts with a capital Sleep(). Instead try using the SetTimer function if using MFC's becuase sleep actually reduces the performance of a system...........

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sleep works with just one thread, but not 2
    By finkus in forum C++ Programming
    Replies: 5
    Last Post: 12-01-2005, 09:17 PM
  2. Problem with Sleep() #$@^#$%^
    By intruder in forum C++ Programming
    Replies: 8
    Last Post: 10-11-2004, 06:46 AM
  3. why do we require sleep?
    By jinx in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 07-14-2004, 08:21 AM
  4. Sleep is overrated...
    By Polymorphic OOP in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 01-24-2003, 12:40 PM
  5. sleep
    By ivandn in forum Linux Programming
    Replies: 7
    Last Post: 12-13-2001, 11:20 PM