summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gruel/src/include/gruel/high_res_timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gruel/src/include/gruel/high_res_timer.h b/gruel/src/include/gruel/high_res_timer.h
index fe9ae763f..9be524624 100644
--- a/gruel/src/include/gruel/high_res_timer.h
+++ b/gruel/src/include/gruel/high_res_timer.h
@@ -58,7 +58,7 @@ namespace gruel {
inline gruel::high_res_timer_type gruel::high_res_timer_now(void){
timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
- return high_res_timer_type(ts.tv_sec*1000000000UL) + ts.tv_nsec;
+ return ts.tv_sec*high_res_timer_tps() + ts.tv_nsec;
}
inline gruel::high_res_timer_type gruel::high_res_timer_tps(void){