Registry / database / win-precise-time

win-precise-time

JSON →
library1.4.2pypypiunverified

Windows-only library providing precise time measurement and sleep functions using high-resolution performance counters and multimedia timers. At version 1.4.2, it supports Python >=3.7 and is actively maintained.

pip install win-precise-time
INSTALL
IMPORT
SIG · WIN-PRECISE-TIME
W
win-precise-time
databasepythonv1.4.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

precise_sleep
from win_precise_time import precise_sleep
Function for high-resolution sleep using multimedia timers.

Demonstrates precise time measurement and sleep.

from win_precise_time import precise_sleep, precise_time import os if os.name != 'nt': print('This library is Windows-only.') exit() t = precise_time() print(f'Start time: {t}') precise_sleep(0.001) print(f'Elapsed: {precise_time() - t}')
Debug
Known issues
breakingOnly works on Windows; raises ImportError on other platforms.
fix
Guard imports with platform checks.
affects: all
gotchaprecise_sleep() blocks the calling thread; cannot be interrupted by signals.
fix
Use threading or subprocess if interruptibility required.
affects: all
Upgrade
Version history
1.4.2latest on PyPI · released Oct 8, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
24
Meta
2
OpenAI (training)
1
Resources
win-precise-time — pip install win-precise-time · libregistry