[RFC] remove gettimeofday() usage

Ping @equalsraf. When this is merged, you'll probably be able to excise a hack.
Here we multiply by 10^6, but we should divide by 10^6 (1E-6 => 1E+6).