[RFC] remove gettimeofday() usage

Ping @equalsraf. When this is merged, you'll probably be able to excise a hack.
I have no problem with Blade Runner-esque things happening to the codebase. This seems rather tiny and inconsequential though.