Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a half a second difference?
Message
From
23/06/2004 09:19:37
 
 
To
22/06/2004 17:06:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00916196
Message ID:
00916375
Views:
9
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform