Previous: 4.80.1.17. ULZTimerOff procedure To the Table of Contents Next: 4.80.1.19. ULZTimerResolution function
4.80.1.17. ULZTimerOff procedure Table of Contents 4.80.1.19. ULZTimerResolution function

- 4.80.1.18. -
Table of Contents
4. Standard Units
4.80. ZenTimer - Full-featured ZTimer Library
4.80.1. ZenTimer Unit Procedures and Functions
4.80.1.18. ULZTimerOn procedure


4.80.1.18. 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: 4.80.1.17. ULZTimerOff procedure To the Table of Contents Next: 4.80.1.19. ULZTimerResolution function
4.80.1.17. ULZTimerOff procedure Table of Contents 4.80.1.19. ULZTimerResolution function

- 4.80.1.18. -