Where the heck is sleep()?

This is a discussion on Where the heck is sleep()? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What library is "sleep()" in. If it helps, I'm using visual c++....

  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,267
    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, 08: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, 11:40 AM
  5. sleep
    By ivandn in forum Linux Programming
    Replies: 7
    Last Post: 12-13-2001, 10:20 PM

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