Make sleep() __fastcall__
git-svn-id: svn://svn.cc65.org/cc65/trunk@2212 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
7c29033b58
commit
86881f6b38
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
unsigned sleep (unsigned wait)
|
unsigned __fastcall__ sleep (unsigned wait)
|
||||||
{
|
{
|
||||||
clock_t goal = clock () + ((clock_t) wait) * CLOCKS_PER_SEC;
|
clock_t goal = clock () + ((clock_t) wait) * CLOCKS_PER_SEC;
|
||||||
while ((long) (goal - clock ()) > 0) ;
|
while ((long) (goal - clock ()) > 0) ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue