corrected the params for gettimeofday
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 8 Aug 1996 18:50:59 +0000 (18:50 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 8 Aug 1996 18:50:59 +0000 (18:50 +0000)
src/conv-core/convcore.c

index 09afd17faebf3c6cf8e5c8ed77f9c31a6e1cbc28..5bd26a1332c8469cc9593530b19af895a269dcab 100644 (file)
@@ -223,7 +223,7 @@ void CmiTimerInit()
 {
   struct timeval tv;
   struct rusage ru;
-  gettimeofday(&tv);
+  gettimeofday(&tv,0);
   inittime_wallclock = (tv.tv_sec * 1.0) + (tv.tv_usec*0.000001);
   getrusage(0, &ru); 
   inittime_virtual =
@@ -248,7 +248,7 @@ double CmiWallTimer()
   struct timeval tv;
   double currenttime;
 
-  gettimeofday(&tv);
+  gettimeofday(&tv,0);
   currenttime = (tv.tv_sec * 1.0) + (tv.tv_usec * 0.000001);
   return currenttime - inittime_wallclock;
 }