diff TOOLS/fastmemcpybench.c @ 35904:cef5275fc11f

Avoid usage of obsolete and BSD-specific "struct timezone".
author diego
date Sun, 17 Mar 2013 22:47:31 +0000
parents b573c7c7173b
children fc2fd624ecc0
line wrap: on
line diff
--- a/TOOLS/fastmemcpybench.c	Sun Mar 17 22:47:17 2013 +0000
+++ b/TOOLS/fastmemcpybench.c	Sun Mar 17 22:47:31 2013 +0000
@@ -175,9 +175,8 @@
 static unsigned int GetTimer(void)
 {
     struct timeval tv;
-    struct timezone tz;
     //float s;
-    gettimeofday(&tv, &tz);
+    gettimeofday(&tv, NULL);
     //s = tv.tv_usec; s *= 0.000001; s += tv.tv_sec;
     return tv.tv_sec * 1000000 + tv.tv_usec;
 }