pynetdicom._config.WINDOWS_TIMER_RESOLUTION¶
- pynetdicom._config.WINDOWS_TIMER_RESOLUTION: float | None = 1¶
Set the minimum timer resolution for Microsoft Windows.
Added in version 2.0.
When running on Windows, the default minimum timer resolution is around 15 milliseconds, however by default pynetdicom runs with a resolution of 1 millisecond. This means that pynetdicom running on Windows may be much slower than expected. To counteract this, pynetdicom uses the
ctypes
module to set the timer resolution toWINDOWS_TIMER_RESOLUTION
while theAssociation
is active.If
WINDOWS_TIMER_RESOLUTION
is set toNone
then no changes to the timer resolution will be made.Default:
1
(in milliseconds)Examples
>>> from pynetdicom import _config >>> _config.WINDOWS_TIMER_RESOLUTION = 5