r873: comforming to C99/C11; resolves #261

This commit is contained in:
Heng Li
2018-11-05 08:25:07 -05:00
parent 09e089c3dc
commit a8ee48c2ce
5 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -116,8 +116,7 @@ long peakrss(void)
double realtime(void)
{
struct timeval tp;
struct timezone tzp;
gettimeofday(&tp, &tzp);
gettimeofday(&tp, NULL);
return tp.tv_sec + tp.tv_usec * 1e-6;
}