mirror of
https://github.com/cc65/cc65.git
synced 2024-06-30 01:29:37 +00:00
86881f6b38
git-svn-id: svn://svn.cc65.org/cc65/trunk@2212 b7a2c559-68d2-44c3-8de9-860c34a00d81
24 lines
291 B
C
24 lines
291 B
C
/*
|
|
* sleep.c
|
|
*
|
|
* Stefan Haubenthal, 2003-06-11
|
|
* Ullrich von Bassewitz, 2003-06-12
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
unsigned __fastcall__ sleep (unsigned wait)
|
|
{
|
|
clock_t goal = clock () + ((clock_t) wait) * CLOCKS_PER_SEC;
|
|
while ((long) (goal - clock ()) > 0) ;
|
|
return 0;
|
|
}
|
|
|
|
|
|
|