]> code.delx.au - gnu-emacs/blobdiff - lib-src/profile.c
Don't declare malloc.
[gnu-emacs] / lib-src / profile.c
index b204e13c20fb171c76c714e6ad910433163a4a90..16a74b713518df4fa705332f1030a86c5b659c45 100644 (file)
@@ -34,7 +34,6 @@
 #include <../src/systime.h>
 
 static struct timeval TV1, TV2;
-static struct timezone *tzp = (struct timezone *) NULL; /* no need timezone */
 static int watch_not_started = 1; /* flag */
 static char time_string[30];
 
@@ -43,7 +42,7 @@ static char time_string[30];
 int
 reset_watch ()
 {
-  gettimeofday (&TV1, tzp);
+  EMACS_GET_TIME (TV1);
   watch_not_started = 0;
 }
 
@@ -56,7 +55,7 @@ get_time ()
 {
   if (watch_not_started)
     exit (1);  /* call reset_watch first ! */
-  gettimeofday (&TV2, tzp);
+  EMACS_GET_TIME (TV2);
   if (TV1.tv_usec > TV2.tv_usec)
     {
       TV2.tv_usec += 1000000;