1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
cabal-version: >= 1.10
name: clock
version: 0.8.4
stability: stable
synopsis: High-resolution clock functions: monotonic, realtime, cputime.
description: 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.
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.
license: BSD3
license-file: LICENSE
author: Cetin Sert <cetin@elefunc.com>, Elefunc, Inc.
maintainer: Cetin Sert <cetin@elefunc.com>, Elefunc, Inc.
homepage: https://github.com/corsis/clock
bug-reports: https://github.com/corsis/clock/issues
category: System
build-type: Simple
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
extra-source-files:
CHANGELOG.md
source-repository head
type: git
location: https://github.com/corsis/clock.git
flag llvm
description: compile via LLVM
default : False
library
build-depends: base >= 4.7 && < 5
exposed-modules: System.Clock
System.Clock.Seconds
default-language: Haskell2010
default-extensions: DeriveGeneric
DeriveDataTypeable
ForeignFunctionInterface
ScopedTypeVariables
ViewPatterns
GeneralizedNewtypeDeriving
if os(windows)
c-sources: cbits/hs_clock_win32.c
include-dirs: cbits
ghc-options: -O3 -Wall
if flag(llvm)
ghc-options: -fllvm -optlo-O3
test-suite test
default-language: Haskell2010
default-extensions: ScopedTypeVariables
GeneralizedNewtypeDeriving
StandaloneDeriving
type:
exitcode-stdio-1.0
hs-source-dirs:
tests
main-is:
test.hs
build-depends:
base
, tasty >= 0.10
, tasty-quickcheck
, clock
benchmark benchmarks
default-language: Haskell2010
type:
exitcode-stdio-1.0
hs-source-dirs:
bench
main-is:
benchmarks.hs
build-depends:
base
, criterion
, clock
|