[RFC] remove gettimeofday() usage

Ping @equalsraf. When this is merged, you'll probably be able to excise a hack.
> Makes it explicit.

That's possibly the reason, indeed. Do you have an xterm somewhere @justinmk? I've pushed some fixes.