TimerReserve Function

Reserves the timer number to be specified for Timer.

Format
TimerReserve

Parameters
None

Returns
Reserved timer number

Description
You can measure the cycle time exclusively by specifying it in the Tmr function.
By reserving a timer number, you can use it without it being used by other libraries. This is a temporary value that is cleared when all tasks are completed. A dedicated reservation timer number is reserved to reduce the risk of timer numbers used by library users being overwritten.

See Also
Tmr, TmReset

TimerReserve Function Usage Example

Function N4_1_Call_Hidden

  t1 = TimerReserve

  TmReset t1             'Reset Timer 0

  Xqt ...

  Print Tmr(t1) / 10     'Calculate and display the cycle time
Fend