Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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
- elapsedTime :: IO a -> IO (a, Double)
- diffSeconds :: TimeSpec -> TimeSpec -> Double
Documentation
elapsedTime :: IO a -> IO (a, Double) #
Time an action. Return the elasped time the result
diffSeconds :: TimeSpec -> TimeSpec -> Double #
Subtract two TimeSpecs and return the result in seconds