[RFC] remove gettimeofday() usage

Ping @equalsraf. When this is merged, you'll probably be able to excise a hack.
Errr... yes indeed. I do wonder why it worked for @equalsraf at all...