>>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.