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
ctypesmodule to set the timer resolution toWINDOWS_TIMER_RESOLUTIONwhile theAssociationis active.If
WINDOWS_TIMER_RESOLUTIONis set toNonethen no changes to the timer resolution will be made.Default:
1(in milliseconds)Examples
>>> from pynetdicom import _config >>> _config.WINDOWS_TIMER_RESOLUTION = 5