pynetdicom._config.WINDOWS_TIMER_RESOLUTION: Optional[float] = 1

Set the minimum timer resolution for Microsoft Windows.

New 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 to WINDOWS_TIMER_RESOLUTION while the Association is active.

If WINDOWS_TIMER_RESOLUTION is set to None then no changes to the timer resolution will be made.

Default: 1 (in milliseconds)


>>> from pynetdicom import _config