Previous: ULZTimerOff procedure To the Table of Content Next: ULZTimerResolution function

- 4.75.1.18 -
Standard Units
ZenTimer Unit
ZenTimer Unit Procedures and Functions

ULZTimerOn procedure

Targets: MS-DOS, OS/2, Win32


ZenTimer Unit

Starts the Ultra Long Period Zen Timer counting.

Declaration:
procedure ULZTimerOn;
Remarks:
Starts the Ultra Long Period Zen Timer counting. Once you have started the timer, you can stop it with ULZTimerOff or you can latch the current count with ULZTimerLap.

The Ultra Long Period Zen Timer uses the available operating system services to obtain accurate timings results with as much precision as the operating system provides, but with enough granularity to time longer periods of time than the Long Period Zen Timer. Note that the resolution of the timer ticks is not constant between different platforms, and you should use the ULZTimerResolution function to determine the number of seconds in a single tick of the timer, and use this to convert the timer counts to seconds.

Under 32-bit DOS, we use the system timer tick which runs at 18.2 times per second. Given that the timer count is returned as an unsigned 32-bit integer, this we can time intervals that are a maximum of 232 * (1/18.2) in length (or about 65,550 hours or 2731 days!).


Previous: ULZTimerOff procedure To the Table of Content Next: ULZTimerResolution function
ULZTimerOff procedure Table of Content ULZTimerResolution function

- 4.75.1.18 -