Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time delay
Message
From
20/12/2003 13:59:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00860994
Message ID:
00861018
Views:
25
Would the built-in WAIT command, with a timeout, be less efficient?

>
DECLARE Sleep in WIN32API integer
>Sleep(2*1000) 		&& 2 sec's
>
>>Hi all,
>>Need a routine that delays the execution of the subsequant program line by x number of miliseconds.
>>Currently using the following:-
>>start_time=seconds()
>>do while seconds()< start_time + x (where x is the number of miliseconds)
>> loop
>>enddo
>>It works but its eating up a lot of CPU processing power unnecessarily. (90%)
>>Any other methods available that is more efficient?
>>Thanks in advance
>>Yau
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform