definition: |
profileTime :: IO a -> IO a profileTime action = do (result,rt,et,gc) <- getTimings action putStrLn $ "Run time: " ++ show rt ++ " msec." putStrLn $ "Elapsed time: " ++ show et ++ " msec." putStrLn $ "Garbage collections: " ++ show gc return result |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
--- Print the time needed to execute a given IO action. |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
profileTime |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
Prelude.IO a -> Prelude.IO a |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |