The clock package

[Tags:bsd3, library, test]

A package for convenient access to high-resolution clock and timer functions of different operating systems via a unified API.

POSIX code and surface API was developed by Cetin Sert in 2009.

Windows code was contributed by Eugene Kirpichov in 2010.

FreeBSD code was contributed by Finn Espen Gundersen on 2013-10-14.

OS X code was contributed by Gerolf Seitz on 2013-10-15.

Derived Generic, Typeable and other instances for Clock and TimeSpec was contributed by Mathieu Boespflug on 2014-09-17.

Corrected dependency listing for GHC < 7.6 was contributed by Brian McKenna on 2014-09-30.

Windows code corrected by Dimitri Sabadie on 2015-02-09.

Added timeSpecAsNanoSecs as observed widely-used by Chris Done on 2015-01-06, exported correctly on 2015-04-20.

Imported Control.Applicative operators correctly for Haskell Platform on Windows on 2015-04-21.

Unit tests and instance fixes by Christian Burger on 2015-06-25.

Removal of fromInteger : Integer -> TimeSpec by Cetin Sert on 2015-12-15.

New Linux-specific Clocks: MonotonicRaw, Boottime, MonotonicCoarse, RealtimeCoarse by Cetin Sert on 2015-12-15.

Reintroduction fromInteger : Integer -> TimeSpec by Cetin Sert on 2016-04-05.

Fixes for older Linux build failures introduced by new Linux-specific clocks by Mario Longobardi on 2016-04-18.

Version Scheme
Major-R-ewrite . New-F-unctionality . I-mprovementAndBugFixes . P-ackagingOnly


Versions 0.1, 0.1.1, 0.1.2,,, 0.3,,,,,,,,,,,, 0.5.1, 0.5.2, 0.6.0,, 0.7.1,, 0.7.2
Dependencies base (>=2 && <=5), ghc-prim [details]
License BSD3
Copyright Copyright © Cetin Sert 2009-2016, Eugene Kirpichov 2010, Finn Espen Gundersen 2013, Gerolf Seitz 2013, Mathieu Boespflug 2014 2015, Chris Done 2015, Dimitri Sabadie 2015, Christian Burger 2015, Mario Longobardi 2016
Author Cetin Sert <>, Corsis Research
Maintainer Cetin Sert <>, Corsis Research
Category System
Home page
Bug tracker
Source repository head: git clone git://
Uploaded Wed Apr 20 01:15:30 UTC 2016 by CetinSert
Distributions Arch:0.7.2, Debian:, LTSHaskell:0.7.2, NixOS:0.7.2, Stackage:0.7.2, Tumbleweed:0.7.2
Downloads 43964 total (7927 in the last 30 days)
4 []
Status Docs available [build log]
Last success reported on 2016-09-15 [all 1 reports]
Hackage Matrix CI




llvmcompile via LLVMDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees