[RFC] remove gettimeofday() usage

Ping @equalsraf. When this is merged, you'll probably be able to excise a hack.
`CHECK_DOUBLE_CLICK` can be removed totally, and then I believe that takes care of the last reference (grep to see what I mean) to `HAVE_GETTIMEOFDAY` which should also be removed totally.