system-time-monotonic: Simple library for using the system's monotonic clock

[ bsd3, library, system ] [ Propose Tags ]

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 to GetTickCount if it is not available. GetTickCount64 was introduced in Windows Vista and Windows Server 2008. Support for QueryPerformanceCounter is also available, but is not used by default, as it is less accurate in the long run than GetTickCount.

  • On Linux, this uses clock_gettime with CLOCK_MONOTONIC.


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1, 0.2
Dependencies base (>=4 && <5), time [details]
License BSD-3-Clause
Copyright Copyright (c) Joseph Adams 2012
Author Joey Adams
Category System
Home page
Source repo head: git clone git://
Uploaded by JoeyAdams at 2012-08-06T04:32:23Z
Distributions NixOS:0.2
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 2162 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]