Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time delay
Message
De
20/12/2003 13:59:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00860994
Message ID:
00861018
Vues:
24
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform