Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-208
Document Number: 3700S-901-01 Rev. A / August 2007
timer functions
Use the functions in this group to control the timer. The timer can be used to measure the time it
takes to perform various operations. Use the
timer.reset
(on page 9-208) function at the
beginning of an operation to reset the timer to zero, and then use the
timer.measure.t
(on page
9-208) at the end of the operation to measure the elapsed time.
timer.measure.t
Function
Measures the elapsed time since the timer was last reset.
Usage
time = timer.measure.t()
time
: Returns the elapsed time in seconds. (1
s resolution).
Remarks
This function will return the elapsed time in seconds since the timer was reset.
The returned resolution for time depends on how long it has been since the timer
was reset. It starts with 1
s resolution and starts to lose resolution after about 2.8
minutes.
Also see
timer.reset
(on page 9-208)
Example
Resets the timer and then measures the time since the reset:
timer.reset()
...
time = timer.measure.t()
print(time)
Output: 1.01
The above output indicates that timer.measure.t was executed 14.69077 seconds after
timer.reset.
timer.reset
Function
Resets the timer to 0 seconds.
Usage
timer.reset()
Remarks
This function will restart the timer at zero.
Also see
timer.measure.t
(on page 9-208)
Example
Resets the timer and then measures the time since the reset:
timer.reset()
...
time = timer.measure.t()
print(time)
Output: 1.01
The above output indicates that timer.measure.t was executed 14.69077 seconds after
timer.reset.