clock: High-resolution clock functions: monotonic, realtime, cputime.

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

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.

Refreshment release in 2019-04 after numerous contributions.

Refactoring for Windows, Mac implementation consistence by Alexander Vershilov on 2021-01-16.

Version Scheme
Major-R-ewrite . New-F-unctionality . I-mprovementAndBugFixes . P-ackagingOnly
  • PackagingOnly changes are made for quality assurance reasons.

Flags

Automatic Flags
NameDescriptionDefault
llvm

compile via LLVM

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.2.1, 0.2.0.0, 0.3, 0.4.0.1, 0.4.1.1, 0.4.1.2, 0.4.1.3, 0.4.2.0, 0.4.3.0, 0.4.4.0, 0.4.5.0, 0.4.6.0, 0.5.0.0, 0.5.0.1, 0.5.1, 0.5.2, 0.6.0, 0.6.0.1, 0.7.1, 0.7.1.1, 0.7.2, 0.8, 0.8.2, 0.8.3, 0.8.4
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5) [details]
Tested with ghc ==9.6.1, ghc ==9.4.4, ghc ==9.2.7, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2, ghc ==7.10.3, ghc ==7.8.4
License BSD-3-Clause
Copyright Copyright © Cetin Sert 2009-2023, 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, Alexander Vershilov 2021.
Author Cetin Sert <cetin@elefunc.com>, Elefunc, Inc.
Maintainer Cetin Sert <cetin@elefunc.com>, Elefunc, Inc.
Category System
Home page https://github.com/corsis/clock
Bug tracker https://github.com/corsis/clock/issues
Source repo head: git clone https://github.com/corsis/clock.git
Uploaded by CetinSert at 2023-07-17T10:33:17Z
Distributions Arch:0.8.4, Debian:0.8, Fedora:0.8.4, LTSHaskell:0.8.4, NixOS:0.8.4, Stackage:0.8.4, openSUSE:0.8.4
Reverse Dependencies 133 direct, 4309 indirect [details]
Downloads 151551 total (528 in the last 30 days)
Rating 2.5 (votes: 5) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-07-17 [all 1 reports]