This function queries the hiresolution clock built into the processor. This makes it much more accurate than the standard DBPro TIMER( ) function.
The first form of the function allows you to specify the frequency that you wish to use when querying the clock. This allows you, for example, to check to see how many 60th’s of a second have passed since the last check - something that is not quite possible with the standard DBPro timer. It will also accept a fractional frequency, for example if a frequency of 0.5 is used, the timer will change value every 2 seconds.
The second form operates in the same way as the DBPro timer, and runs at a frequency of 1ms (1/1000th of a second). |