diff options
author | Philip Balister | 2011-11-01 18:32:31 -0400 |
---|---|---|
committer | Philip Balister | 2011-11-01 18:58:15 -0400 |
commit | 640e859f564361270d8cd30d7fbff582ad228110 (patch) | |
tree | 6f58516e4b66816dde4d38df6df19773dbb20bc2 /gruel/src | |
parent | 3259e2a6a4effa2e847f096094df36d37e781742 (diff) | |
download | gnuradio-640e859f564361270d8cd30d7fbff582ad228110.tar.gz gnuradio-640e859f564361270d8cd30d7fbff582ad228110.tar.bz2 gnuradio-640e859f564361270d8cd30d7fbff582ad228110.zip |
high_res_timer: Fix high_res_timer_now() for E100.
Signed-off-by: Philip Balister <philip@opensdr.com>
Diffstat (limited to 'gruel/src')
-rw-r--r-- | gruel/src/include/gruel/high_res_timer.h | 2 |
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){ |