Use CSUSeconds in getCPUTime and getCurrentTime. Fixes #4247.
authorWilliam Knop <william.knop.nospam@gmail.com>
Tue, 5 Apr 2011 01:01:39 +0000 (21:01 -0400)
committerAdam Megacz <megacz@cs.berkeley.edu>
Mon, 20 Jun 2011 02:04:26 +0000 (19:04 -0700)
commit6521ec5cf8c3b3cb9d6733b5d76d6375303f975c
tree2cbe883cc22229993ac7c862bd6badca21cceabd
parent9af062a0894f4a3fe52a8fa1c08c0b6ccf724367
Use CSUSeconds in getCPUTime and getCurrentTime. Fixes #4247.

The tv_usec field of struct timeval was incorrectly used as C type time_t; the actual C type is suseconds_t. On OS X, time_t is longer than suseconds_t, which caused garbage bits to be copied as reported in trace #4247 and #4970. This is patch 3 of 4 to fix those tickets.
GHC/Event/Clock.hsc
System/CPUTime.hsc