mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
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:
@@ -249,10 +249,10 @@ putPointE v opts msg act = do
|
|||||||
a <- act >>= ioeIO . evaluate
|
a <- act >>= ioeIO . evaluate
|
||||||
t2 <- ioeIO $ getCPUTime
|
t2 <- ioeIO $ getCPUTime
|
||||||
|
|
||||||
ioeIO $ putStrLnFlush
|
if flag optShowCPUTime opts
|
||||||
(if flag optShowCPUTime opts
|
then putStrLnE (" " ++ show ((t2 - t1) `div` 1000000000) ++ " msec")
|
||||||
then (' ' : show ((t2 - t1) `div` 1000000000) ++ " msec")
|
else when (verbAtLeast opts v) $ putStrLnE ""
|
||||||
else "")
|
|
||||||
return a
|
return a
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user