repa-io- Read and write Repa arrays in various formats.

Safe HaskellSafe



Timing utilities used for benchmarks in the repa-examples package.



data Time #

Abstract representation of process time.

milliseconds :: TimeUnit #

microseconds :: TimeUnit #

cpuTime :: TimeUnit -> Time -> Integer #

wallTime :: TimeUnit -> Time -> Integer #

time :: IO a -> IO (a, Time) #

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.

minus :: Time -> Time -> Time #

Subtract second time from the first.

plus :: Time -> Time -> Time #

Add two times.

showTime :: Time -> String #

Show a time as a string, in milliseconds.

prettyTime :: Time -> String #

Pretty print the times, in milliseconds.