Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Timing utilities used for benchmarks in the repa-examples
package.
Documentation
data Time
Abstract representation of process time.
milliseconds :: TimeUnit
microseconds :: TimeUnit
Time some IO action. Make sure to deepseq the result before returning it from the action. If you don't do this then there's a good chance that you'll just pass a suspension out of the action, and the computation time will be zero.
prettyTime :: Time -> String
Pretty print the times, in milliseconds.