| Safe Haskell | Safe-Inferred |
|---|
ToolShed.System.TimeAction
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Determines the CPU-time, required to evaluate the specified IO-action.
- getCPUSeconds :: Fractional seconds => IO result -> IO (seconds, result)
- printCPUSeconds :: IO result -> IO result
Functions
getCPUSeconds :: Fractional seconds => IO result -> IO (seconds, result)Source
Time the specified IO-action, returning the required number of CPU-seconds and the result, as a Pair.
printCPUSeconds :: IO result -> IO resultSource
Print the time required by the specified IO-action.