Mark said:
Why not?
It can be done. BTDT. It is as portable and standardized
as any way to achieve this...
but thats why we don't ask or answer system-specific
questions here.
*gg* I know. But if you know better, why not correct it? IMHO under
windows SetTimer and KillTimer are excellent for timing in the range
of milliseconds. They are quite precise too. I even use them in (god
help me here in c.l.c.) VB. In C there are other possibilities but I
usually write a handler for WM_TIMER and things are done. Nothing to
worry any more. If you want a delay, use a lock-variable that is set
on timer start and release it in the callback function. Highest
precision you can imagine under windoze... If you ar not satisfied yet
use the multimedia-timer - then it's even possible to do timing in the
range of µs.
All not Standard C, all not portable. It just "works". So I'll hop out
of this obviously off-topic stuff here
If you want to shout at me, do so. I have no problem with it.