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:
Roger Bystrøm 2007-06-09 15:45:36 +00:00
parent a886600474
commit 50fbab086a
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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