fixed a small typo in gettimeofday
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 8 Aug 1996 17:19:02 +0000 (17:19 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 8 Aug 1996 17:19:02 +0000 (17:19 +0000)
src/conv-core/convcore.c

index a9b14a92cf3e08fc9b4ec8db7dfec5ab04032a3e..09afd17faebf3c6cf8e5c8ed77f9c31a6e1cbc28 100644 (file)
@@ -30,7 +30,8 @@ static char ident[] = "@(#)$Header$";
 #endif
 
 #if CMK_TIMER_USE_GETRUSAGE
-#include <sys/rusage.h>
+#include <sys/time.h>
+#include <sys/resource.h>
 #endif
 
 /*****************************************************************************
@@ -247,7 +248,7 @@ double CmiWallTimer()
   struct timeval tv;
   double currenttime;
 
-  getttimeofday(&tv);
+  gettimeofday(&tv);
   currenttime = (tv.tv_sec * 1.0) + (tv.tv_usec * 0.000001);
   return currenttime - inittime_wallclock;
 }