clock 0.1.2 → 0.1.2.1
raw patch · 4 files changed
+18/−5 lines, 4 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ System.Posix.Clock: nsec :: TimeSpec -> Int
+ System.Posix.Clock: sec :: TimeSpec -> Int
Files
- CHANGES +9/−0
- System/Posix/Clock.hs +6/−2
- clock.cabal +2/−2
- csec/clock.c +1/−1
CHANGES view
@@ -1,5 +1,14 @@ CHANGES + 0.1.2.1:+ → bugfix: System.Posix.Clock.getTime+ this would call clock_getres internally+ results were always the same with getRes++ → bugfix: System.Posix.Clock.sec+ System.Posix.Clock.nsec+ now properly exported+ 0.1.2: → System.CPUTime.Clock: renamed to System.Posix.Clock because it contained a posix-only implementation.
System/Posix/Clock.hs view
@@ -1,6 +1,7 @@ -- | High-resolution, realtime clock and timer functions for Posix--- systems. This module is being developed according to IEEE Std.--- 1003.1-2008: <http://www.opengroup.org/onlinepubs/9699919799/>.+-- systems. This module is being developed according to IEEE Std+-- 1003.1-2008: <http://www.opengroup.org/onlinepubs/9699919799/>,+-- <http://www.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html#> module System.Posix.Clock ( Clock (Monotonic, Realtime, ProcessCPUTime, ThreadCPUTime),@@ -8,6 +9,9 @@ getTime, getRes,++ sec,+ nsec ) where
clock.cabal view
@@ -1,11 +1,11 @@ Name: clock-Version: 0.1.2+Version: 0.1.2.1 License: BSD3 License-file: COPYING Copyright: (c) 2009 Cetin Sert Author: Cetin Sert <cetin@sertcom.de> Maintainer: Cetin Sert <cetin@sertcom.de>-Homepage: <http://sert.homedns.org/hs/clock/>+Homepage: http://sert.homedns.org/hs/clock Category: System Synopsis: High-resolution clock and timer functions: realtime, monotonic, cputime, etc.
csec/clock.c view
@@ -5,7 +5,7 @@ void time_(clockid_t clock, long* t) { - clock_getres(clock, (struct timespec*)t);+ clock_gettime(clock, (struct timespec*)t); /* struct timespec a;