1
0
forked from GitHub/gf-core

if optShowCPUTime is off just print \n in putPointE

This commit is contained in:
krasimir
2008-05-29 07:34:29 +00:00
parent 0a0412c036
commit d55f529a6e

View File

@@ -249,7 +249,10 @@ putPointE v opts msg act = do
a <- act >>= ioeIO . evaluate
t2 <- ioeIO $ getCPUTime
when (flag optShowCPUTime opts) $ ioeIO $ putStrLnFlush (' ' : show ((t2 - t1) `div` 1000000000) ++ " msec")
ioeIO $ putStrLnFlush
(if flag optShowCPUTime opts
then (' ' : show ((t2 - t1) `div` 1000000000) ++ " msec")
else "")
return a