From 50fbab086a3820f5efbd95e316077f78b130accc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Bystr=C3=B8m?= Date: Sat, 9 Jun 2007 15:45:36 +0000 Subject: switching to us instead of ms on runtime git-svn-id: https://svn.musicpd.org/mpd/trunk@6522 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/timer.c | 4 ++-- src/timer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/timer.c b/src/timer.c index f808fb02f..f9dfb1ab6 100644 --- a/src/timer.c +++ b/src/timer.c @@ -80,7 +80,7 @@ void timer_sync(Timer *timer) my_usleep(sleep); } -int timer_get_runtime_ms(Timer *timer) +uint64_t timer_get_runtime_us(Timer *timer) { - return (now() - timer->start_time)/1000; + return now() - timer->start_time; } diff --git a/src/timer.h b/src/timer.h index 61eaeb56f..7e84d9071 100644 --- a/src/timer.h +++ b/src/timer.h @@ -41,6 +41,6 @@ void timer_add(Timer *timer, int size); void timer_sync(Timer *timer); -int timer_get_runtime_ms(Timer *timer); +uint64_t timer_get_runtime_us(Timer *timer); #endif -- cgit v1.2.3