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:
00916636
Views:
9
>
>Paul, try this and let me know what you get. Then change to sleep(0).
>
>I wonder if the resolution of sleep depends on the OS I am using Win2k.
>

For Sleep(1) I'm seeing 1.9810 ms, for (0) I'm seeing 0.0030 ms. I'm running XP. The first # (1.9810) doesn't surprise me, I'd expect some additional overhead in the loop and calling the DLL.
-Paul

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

Click here to load this message in the networking platform