packages feed

clock 0.7.1.1 → 0.7.2

raw patch · 2 files changed

+23/−6 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_0Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_0TimeSpec
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_1Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_2Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_3Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_4Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_5Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_6Clock
- System.Clock: instance GHC.Generics.Constructor System.Clock.C1_7Clock
- System.Clock: instance GHC.Generics.Datatype System.Clock.D1Clock
- System.Clock: instance GHC.Generics.Datatype System.Clock.D1TimeSpec
- System.Clock: instance GHC.Generics.Selector System.Clock.S1_0_0TimeSpec
- System.Clock: instance GHC.Generics.Selector System.Clock.S1_0_1TimeSpec

Files

System/Clock.hsc view
@@ -77,15 +77,16 @@     --   amount of execution time of the current OS thread.   | ThreadCPUTime -#if defined (linux_HOST_OS)-+#if defined (CLOCK_MONOTONIC_RAW)     -- | (since Linux 2.6.28; Linux-specific)     --   Similar to CLOCK_MONOTONIC, but provides access to a     --   raw hardware-based time that is not subject to NTP     --   adjustments or the incremental adjustments performed by     --   adjtime(3).   | MonotonicRaw+#endif +#if defined (CLOCK_BOOTTIME)     -- | (since Linux 2.6.39; Linux-specific)     --   Identical to CLOCK_MONOTONIC, except it also includes     --   any time that the system is suspended.  This allows@@ -94,17 +95,20 @@     --   CLOCK_REALTIME, which may have discontinuities if the     --   time is changed using settimeofday(2).   | Boottime+#endif +#if defined (CLOCK_MONOTONIC_COARSE)     -- | (since Linux 2.6.32; Linux-specific)     --   A faster but less precise version of CLOCK_MONOTONIC.     --   Use when you need very fast, but not fine-grained timestamps.   | MonotonicCoarse+#endif +#if defined (CLOCK_REALTIME_COARSE)     -- | (since Linux 2.6.32; Linux-specific)     --   A faster but less precise version of CLOCK_REALTIME.     --   Use when you need very fast, but not fine-grained timestamps.   | RealtimeCoarse- #endif    deriving (Eq, Enum, Generic, Read, Show, Typeable)@@ -139,12 +143,23 @@ clockToConst  Realtime = #const CLOCK_REALTIME clockToConst ProcessCPUTime = #const CLOCK_PROCESS_CPUTIME_ID clockToConst  ThreadCPUTime = #const CLOCK_THREAD_CPUTIME_ID-#if defined (linux_HOST_OS)++#if defined (CLOCK_MONOTONIC_RAW) clockToConst    MonotonicRaw = #const CLOCK_MONOTONIC_RAW+#endif++#if defined (CLOCK_BOOTTIME) clockToConst        Boottime = #const CLOCK_BOOTTIME+#endif++#if defined (CLOCK_MONOTONIC_COARSE) clockToConst MonotonicCoarse = #const CLOCK_MONOTONIC_COARSE+#endif++#if defined (CLOCK_REALTIME_COARSE) clockToConst  RealtimeCoarse = #const CLOCK_REALTIME_COARSE #endif+ #endif  allocaAndPeek :: Storable a => (Ptr a -> IO ()) -> IO a
clock.cabal view
@@ -1,5 +1,5 @@ name:          clock-version:       0.7.1.1+version:       0.7.2 stability:     stable synopsis:      High-resolution clock functions: monotonic, realtime, cputime. description:   A package for convenient access to high-resolution clock and@@ -31,12 +31,14 @@                .                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                .                * @PackagingOnly@ changes are made for quality assurance reasons. -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+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 license:       BSD3 license-file:  LICENSE author:        Cetin Sert <cetin@corsis.eu>, Corsis Research