Ticket #1685 (closed bug: worksforme)
getCPUTime does not work in general
| Reported by: | iampure@… | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.1 |
| Component: | GHCi | Version: | 6.7 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
With
fromPicoSeconds picoseconds = let (n,k) = divMod picoseconds (10^12) in normalizeTimeDiff (diffClockTimes (TOD n k) (TOD 0 0))
Then evaluate the following:
replicateM 1000 $ liftM fromPicoSeconds getCPUTime
They all return the same number of picoseconds. Computers aren't that fast. I expected to see at least some different numbers.
Change History
Note: See
TracTickets for help on using
tickets.
