Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sleep(1) too slow
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00916333
Message ID:
00916475
Views:
9
>I am trying to delay a loop by a small amount of time.
>
>If I use sleep(1) it delays for a minimum of 16ms, much too slow. If instead I use Sleep(0) the loop happens quick enough but also have 100% cpu usage.
>
>Anyone know of another way to place a delay in a loop, something inbetween sleep(0) and sleep(1).
>

You could try:
DECLARE INTEGER SleepEx IN WIN32API ;
        INTEGER, ;
        INTEGER

SleepEx(1, 0)
* Or
SleepEx(0, 0)
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform