Commit 50fbab08 authored by Roger Bystrøm's avatar Roger Bystrøm

switching to us instead of ms on runtime

git-svn-id: https://svn.musicpd.org/mpd/trunk@6522 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent a8866004
......@@ -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;
}
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment