It seems that it always returns 0
or 15625000000
.
import System.CPUTime
main = do
print =<< getCPUTime
getLine
print =<< getCPUTime
getLine
return ()
Execution
>>time.exe
15625000000
15625000000
>>time.exe
0
0
>>time.exe
0
15625000000
>>time.exe
0
0
I am on Windows, I think this is platform related.
source
share