getCPUTime only returns two values (0 or 15625000000) - is this correct?
haskell, time, windows
Solution
`getCPUTime` returns the CPU time used by your process. Since your process does practically nothing, it always returns 0 or the next closest thing to it (which in your platform seems to be 15625000000). Note that the time your process is blocked waiting for input doesn't count as CPU time of your process.
Problem
It seems that it always return `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'm on Windows, I think it's a platform related.