Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get a half a second difference?
Message
De
23/06/2004 09:19:37
 
 
À
22/06/2004 17:06:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00916196
Message ID:
00916375
Vues:
10
>>How do I get a half-second difference? I am trying to define a latency value of 0.5 second.
>
>I'm not sure if you're asking how to measure by tenths of a second, or cause the system to pause for half a second but this should answer both:
>
>
>lnS = SECONDS()
>DECLARE Sleep IN Win32API INTEGER nMilliseconds
>=sleep(500)
>?SECONDS() - lnS
>
SLEEP() will invoke an inactive period.
INKEY(x) will do the same, although at the moment that the user presses a key or mouse button, the program continues with the next line.

Perhaps Ramil's need is more in line with inkey(x).
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform