diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1998-11-10 17:58:28 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1998-11-10 17:58:28 (GMT) |
commit | 55346e8376bc1cee195277cd56ca23567631e325 (patch) | |
tree | 0aa4e4fe481f803160b38292b7d5a5a9c1622799 /src | |
parent | a4ef96bca59d6edc6542d15f96537028b2634b0f (diff) | |
download | hdf5-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |