clock 0.5.0.1 → 0.5.1
raw patch · 2 files changed
+7/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- System/Clock.hsc +5/−1
- clock.cabal +2/−2
System/Clock.hsc view
@@ -4,6 +4,9 @@ -- <http://www.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html#> {-# OPTIONS_GHC -fno-warn-type-defaults #-}+-- To allow importing Data.Int and Data.Word indiscriminately on all platforms,+-- since we can't systematically predict what typedef's expand to.+{-# OPTIONS_GHC -fno-warn-unused-imports #-} module System.Clock ( Clock(..)@@ -16,6 +19,7 @@ import Control.Applicative ((<$>), (<*>)) import Data.Int+import Data.Word import Data.Typeable (Typeable) import Foreign.Ptr import Foreign.Storable@@ -189,7 +193,7 @@ -- seconds (fromInteger $ xsi * ysi) -- nanoseconds- (fromInteger $ (xni * yni + (xni * ysi + xsi * yni) * (10^9)) + (fromInteger $ (xni * yni + (xni * ysi + xsi * yni) * (10^9)) `div` (10^9)) negate (TimeSpec xs xn) = normalize $ TimeSpec (negate xs) (negate xn)
clock.cabal view
@@ -1,5 +1,5 @@ name: clock-version: 0.5.0.1+version: 0.5.1 stability: stable synopsis: High-resolution clock functions: monotonic, realtime, cputime. description: A package for convenient access to high-resolution clock and@@ -30,7 +30,7 @@ . * @PackagingOnly@ changes are made for quality assurance reasons. -copyright: Copyright © Cetin Sert 2009-2013, Eugene Kirpichov 2010, Finn Espen Gundersen 2013, Gerolf Seitz 2013, Mathieu Boespflug 2014, Chris Done 2015, Dimitri Sabadie 2015, Christian Burger 2015+copyright: Copyright © Cetin Sert 2009-2013, Eugene Kirpichov 2010, Finn Espen Gundersen 2013, Gerolf Seitz 2013, Mathieu Boespflug 2014 2015, Chris Done 2015, Dimitri Sabadie 2015, Christian Burger 2015 license: BSD3 license-file: LICENSE author: Cetin Sert <cetin@corsis.eu>, Corsis Research