clock-extras-0.1.0.2: A couple functions that probably should be in the 'clock' package

Safe HaskellSafe
LanguageHaskell2010

System.Clock.TimeIt

Description

A couple functions that probably should be in the clock package. See this issue: https://github.com/corsis/clock/issues/42

Synopsis

Documentation

elapsedTime :: IO a -> IO (a, Double) Source #

Time an action. Return the elasped time the result

diffSeconds :: TimeSpec -> TimeSpec -> Double Source #

Subtract two TimeSpecs and return the result in seconds