diff --git a/Grid/perfmon/Timer.h b/Grid/perfmon/Timer.h index 2a44faee..02c23a62 100644 --- a/Grid/perfmon/Timer.h +++ b/Grid/perfmon/Timer.h @@ -39,9 +39,9 @@ NAMESPACE_BEGIN(Grid) // C++11 time facilities better? inline double usecond(void) { struct timeval tv; -#ifdef TIMERS_ON + tv.tv_sec = 0; + tv.tv_usec = 0; gettimeofday(&tv,NULL); -#endif return 1.0*tv.tv_usec + 1.0e6*tv.tv_sec; }