Use our own gettimeofday implementation on windows for it to be consistent across ming builds and higher resolution.
Abstract out the conversion of system time to an lldiv_t in decimicroseconds.
Use timespecs on windows as cgtimer_t to capitalise on the higher resolution clock changes.