pynetdicom.timer.Timer¶
- class pynetdicom.timer.Timer(max_number_seconds)[source][source]¶
A generic timer.
Implementation of the DICOM Upper Layer’s ARTIM timer. The ARTIM timer is used by the state machine to monitor connection and response timeouts. This class may also be used as a general purpose expiry timer.
References
DICOM Standard, Part 8, Section 9.1.5.
Methods
__init__(max_number_seconds)Create a new Timer.
restart()Restart the timer.
start()Resets and starts the timer running.
stop()Stops the timer and resets it.
Attributes
is_expiredCheck if the timer has expired.
time_remainingReturn the number of seconds remaining until timeout.
timeout_secondsReturn the number of seconds set for timeout.