1
0
forked from GitHub/gf-core

Only print \n instead of CPU time in putPointE when printing the text message. This avoids printings lots of empty lines in silent mode.

This commit is contained in:
bjorn
2008-05-29 08:06:56 +00:00
parent d459573c80
commit 34736bb431

View File

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