diff options
Diffstat (limited to 'common/timer.c')
-rw-r--r-- | common/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/timer.c b/common/timer.c index 289314e74a..b1f452f611 100644 --- a/common/timer.c +++ b/common/timer.c @@ -185,7 +185,8 @@ timestamp_t get_time(void) clock_t clock(void) { - return (clock_t) __hw_clock_source_read(); + /* __hw_clock_source_read() returns a microsecond resolution timer.*/ + return (clock_t) __hw_clock_source_read() / 1000; } void force_time(timestamp_t ts) |