{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Provides high-resolution time measurement and sub-millisecond sleep on Windows by wrapping Windows API calls, replacing the ~15ms resolution of the builtin time.time().","skillfed_tags":["windows-only","timing-precision","c-extension"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"win-precise-time","links":{"html":"https://skillfed.io/packages/win-precise-time","md":"https://skillfed.io/packages/win-precise-time.md","pypi":"https://pypi.org/project/win-precise-time/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-10-08","license_spdx":null,"license_treatment":"permissive","name":"win-precise-time","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":184628,"position":10029,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.2"}
