impl gettimeofday for windows