system-time-monotonic: Simple library for using the system's monotonic clock
Simple library for using the system's monotonic clock. This library is geared toward programs that need to run for long periods of time. It does not (necessarily) provide high-resolution timing.
On Windows, this uses
GetTickCount64
, but falls back toGetTickCount
if it is not available.GetTickCount64
was introduced in Windows Vista and Windows Server 2008. Support forQueryPerformanceCounter
is also available, but is not used by default, as it is less accurate in the long run thanGetTickCount
.On Linux, this uses
clock_gettime
withCLOCK_MONOTONIC
.
Release history:
- 0.2
- Update driver API (
SystemClock
) to prevent cumulative precision loss. - 0.1
- Initial release.
Versions | 0.1, 0.2 |
---|---|
Dependencies | base (==4.*), time [details] |
License | BSD-3-Clause |
Copyright | Copyright (c) Joseph Adams 2012 |
Author | Joey Adams |
Maintainer | joeyadams3.14159@gmail.com |
Category | System |
Home page | https://github.com/joeyadams/haskell-system-time-monotonic |
Source repo | head: git clone git://github.com/joeyadams/haskell-system-time-monotonic.git |
Uploaded | by JoeyAdams at Tue Aug 7 07:21:05 UTC 2012 |
Distributions | NixOS:0.2 |
Downloads | 1128 total (5 in the last 30 days) |
Rating | (no votes yet) [estimated by rule of succession] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] Hackage Matrix CI |
Downloads
- system-time-monotonic-0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)