The timer resolution is 1 microsecond.
Timers -1 and -2
If you don't want to use timers 1 through 15, or need more than 15 timers, Timers -1 and -2
may be used as follows:
In V+ 11.2 and later,
provides a better method for computing such intervals pro-
vided that a DOUBLE value can be used.
The type of V+ variable used in time computations affects the maximum interval that can be
computed with full resolution:
Standard REAL variables have only 24 bits of resolution, which limits the time interval
to 16,777,216 (2
) counts. This limit corresponds to about 4.6 hours for millisecond
timers and 74 hours for 16-millisecond timers.
DOUBLE REAL variables have 52 bits of precision so the full resolution of the various
timers is stored.
The following example shows how the TIMER instruction and real-valued function can be
used to time the execution of a subroutine:
TIMER real-valued function
V+ Language Reference Guide