gettimeofday is actaully rather efficient nowadays

it uses a shared page now, so it's no longer a syscall.
bitset functions probably wrong

I'd wanted something that would work on the stack which means
switching to macros.