fixed gettimeofday in stopwatch