Would the built-in WAIT command, with a timeout, be less efficient?
>
DECLARE Sleep in WIN32API integer
>Sleep(2*1000)
>
>>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)