summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5timer.c b/src/H5timer.c
index 4a1f3f0..8603b1c 100644
--- a/src/H5timer.c
+++ b/src/H5timer.c
@@ -198,7 +198,7 @@ H5_now_usec(void)
struct timespec ts;
HDclock_gettime(CLOCK_MONOTONIC, &ts);
- now = (uint64_t)(ts.tv_sec * (1000 * 1000)) + (uint64_t)(ts.tv_nsec * 1000);
+ now = (uint64_t)(ts.tv_sec * (1000 * 1000)) + (uint64_t)(ts.tv_nsec / 1000);
}
#elif defined(H5_HAVE_GETTIMEOFDAY)
{