win-precise-time
Decision gist · record as of 2026-08-14
Yes, if you are on Windows and need microsecond-resolution timing or sub-millisecond sleep precision. The package is stable, permissively licensed, and has no known vulnerabilities. However, expect no active maintenance or updates; dormant status means community support is limited. Not applicable on non-Windows platforms.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Windows-only; requires Python 3.7 or later and a Windows OS (wheels provided for win32 and win_amd64 only).
- Medium friction: platform-specific compiled wheels for Windows only (cp37–cp312, win32 and win_amd64).
- Dormant maintenance (last release 2023-10-08, last commit 2024-10-09); no active development but repository not archived.
License · maintenance · safety
MIT (permissive) — MIT license (permissive); no restrictions on commercial or private use, modification, or distribution provided the license text is retained.
last release 2023-10-08 (1041 days) · last repo commit 2024-10-09 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 184,628 downloads/mo, #10,029 on PyPI
Alternatives
Verify before relying
pip install win-precise-time
import win_precise_time as wpt
wpt.time() # retrieve current time with high precision
wpt.sleep(0.001) # sleep for 1ms with sub-millisecond precision- Whether the package works reliably on all supported Python versions given dormant maintenance status.
- Real-world precision guarantees under different system loads or timer configurations.
- Compatibility with Windows Server editions or non-standard Windows configurations.
What it is and what it does
win-precise-time is a Windows-only C extension that provides microsecond-resolution time measurement and sub-millisecond sleep precision, addressing a Windows-specific limitation where the builtin time.time() offers only ~15ms resolution. The package exposes two main functions: time() retrieves the current timestamp using GetSystemTimePreciseAsFileTime, and sleep() implements a more precise sleep by using SetWaitableTimerEx without requiring system-wide timer resolution changes. Both functions are implemented in C and perform comparably to the builtin time.perf_counter(). The package has no runtime dependencies and supports Python 3.7 through current versions on both 32-bit and 64-bit Windows.
The package is useful for Windows developers who need accurate timing for benchmarking, performance profiling, or real-time applications where millisecond-level jitter is unacceptable. It is production-stable but dormant; the last release was 2023-10-08 and the repository shows no active development, though it remains unarchived and free of known security vulnerabilities.
Use it for
- Benchmarking and profiling Windows applications where builtin time.time() resolution is insufficient.
- Real-time or latency-sensitive applications requiring sub-millisecond sleep precision without global timer changes.
- Performance testing frameworks that need accurate microsecond-level timing on Windows.
- Game engines or multimedia applications on Windows requiring precise frame timing.
- Replacing time.time() and time.sleep() in code when running on Windows to avoid precision loss.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are on Windows and need microsecond-resolution timing or sub-millisecond sleep precision.
The package is stable, permissively licensed, and has no known vulnerabilities. However, expect no active maintenance or updates; dormant status means community support is limited. Not applicable on non-Windows platforms.
Install
win-precise-time on PyPI
Before you install
Medium friction: platform-specific compiled wheels for Windows only (cp37–cp312, win32 and win_amd64). Dormant maintenance (last release 2023-10-08, last commit 2024-10-09); no active development but repository not archived.
Windows-only; requires Python 3.7 or later and a Windows OS (wheels provided for win32 and win_amd64 only).
License in practice
MIT license (permissive); no restrictions on commercial or private use, modification, or distribution provided the license text is retained.
Quickstart
pip install win-precise-time
import win_precise_time as wpt
wpt.time() # retrieve current time with high precision
wpt.sleep(0.001) # sleep for 1ms with sub-millisecond precision
Verify before relying
- Whether the package works reliably on all supported Python versions given dormant maintenance status.
- Real-world precision guarantees under different system loads or timer configurations.
- Compatibility with Windows Server editions or non-standard Windows configurations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,041 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 184,628 / month, #10,029 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPython |
Evidence: win_precise_time-1.4.2-cp310-cp310-win32.whl; win_precise_time-1.4.2-cp310-cp310-win_amd64.whl; win_precise_time-1.4.2-cp311-cp311-win32.whl; win_precise_time-1.4.2-cp311-cp311-win_amd64.whl; win_precise_time-1.4.2-cp312-cp312-win32.whl; win_precise_time-1.4.2-cp312-cp312-win_amd64.whl; win_precise_time-1.4.2-cp37-cp37m-win32.whl; win_precise_time-1.4.2-cp37-cp37m-win_amd64.whl; win_precise_time-1.4.2-cp38-cp38-win32.whl; win_precise_time-1.4.2-cp38-cp38-win_amd64.whl; win_precise_time-1.4.2-cp39-cp39-win32.whl; win_precise_time-1.4.2-cp39-cp39-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “windows high resolution timer”
- win-precise-timeProvides high-resolution time measurement and sub-millisecond sleep…
- monotonicProvides a monotonic clock function that returns elapsed time in…
- python-timeoutGenerates random timeouts between specified minimum and maximum…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also stopwatch.py · python-timeout · win32-setctime · uiautomation · ntstatus · nanotime · recognizers-text-date-time · codetiming · monotonic · about-time