switching to us instead of ms on runtime
git-svn-id: https://svn.musicpd.org/mpd/trunk@6522 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
a886600474
commit
50fbab086a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user