summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index af406ee..06c164c 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -1006,8 +1006,9 @@ H5_timer_begin (H5_timer_t *timer)
timer->utime = 0.0;
timer->stime = 0.0;
#endif
-
+#ifdef HAVE_GETTIMEOFDAY
gettimeofday (&etime, NULL);
+#endif
timer->etime = (double)etime.tv_sec + (double)etime.tv_usec/1e6;
}