Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - usleep http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   usleep

   Usage
   #include <time.h>
   void sleep(long microseconds);

   Description
   Suspends  execution  of  the  program  for  the  specified  number  of
   microseconds. The granularity depends on DOS.

   Some versions of DOS have a granularity of only 1 second.

   Example
   #include <stdio.h>
   #include <time.h>

   main()
   {
        printf("Going to sleep for 10 seconds\n");
        sleep(1000000);
        printf("OK, back again now\n");
   }


See Also: sleep msleep

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson