Gday Bojan
Quote:
I don't mind if machine does nothing else while waiting,
|
Just use the std sleep procedure then.
It automatically converts cpuTicks to millisec, hence is clock independent.
Much simpler than trying to roll yr own timer.
Andrew
PS the "process messages" wouldnt hurt in yr scenario, but will not do anything unless you have an event programmed for the message.
In the case you show, using a timer is probably a neater solution.