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

Data.Array.Repa.IO.Timing

Description

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

Synopsis

# Documentation

data Time Source #

Abstract representation of process time.

milliseconds :: TimeUnit Source #

microseconds :: TimeUnit Source #

cpuTime :: TimeUnit -> Time -> Integer Source #

wallTime :: TimeUnit -> Time -> Integer Source #

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

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 Source #

Subtract second time from the first.

plus :: Time -> Time -> Time Source #