s4: use GetTimeOfDay macro instead of gettimeofday