aboutsummaryrefslogtreecommitdiffstats
path: root/src/timer.c
diff options
context:
space:
mode:
authorRoger Bystrøm <roger@remiss.org>2007-06-09 15:45:36 +0000
committerRoger Bystrøm <roger@remiss.org>2007-06-09 15:45:36 +0000
commit50fbab086a3820f5efbd95e316077f78b130accc (patch)
tree70894b0fcd8aad64082ec6205ee5a16c5f0c972e /src/timer.c
parenta8866004743fd6b997da81907f9527b405a5e498 (diff)
downloadmpd-50fbab086a3820f5efbd95e316077f78b130accc.tar.gz
mpd-50fbab086a3820f5efbd95e316077f78b130accc.tar.xz
mpd-50fbab086a3820f5efbd95e316077f78b130accc.zip
switching to us instead of ms on runtime
git-svn-id: https://svn.musicpd.org/mpd/trunk@6522 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/timer.c4
1 files changed, 2 insertions, 2 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;
}