summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 17:58:28 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 17:58:28 (GMT)
commit55346e8376bc1cee195277cd56ca23567631e325 (patch)
tree0aa4e4fe481f803160b38292b7d5a5a9c1622799 /src
parenta4ef96bca59d6edc6542d15f96537028b2634b0f (diff)
downloadhdf5-55346e8376bc1cee195277cd56ca23567631e325.zip
hdf5-55346e8376bc1cee195277cd56ca23567631e325.tar.gz
hdf5-55346e8376bc1cee195277cd56ca23567631e325.tar.bz2
[svn-r888] i added a #ifdef HAVE_GETTIMEOFDAY around the gettimeofday function call
Diffstat (limited to 'src')
-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;
}