diff options
author | Roger Bystrøm <roger@remiss.org> | 2007-06-09 14:03:09 +0000 |
---|---|---|
committer | Roger Bystrøm <roger@remiss.org> | 2007-06-09 14:03:09 +0000 |
commit | a8866004743fd6b997da81907f9527b405a5e498 (patch) | |
tree | 5672c68d9754765b6d89b1a0f190f8e3f53ea240 /src/timer.h | |
parent | 9ccf0d8a2555a73854cde6e2e4cee3bdb6421ec5 (diff) | |
download | mpd-a8866004743fd6b997da81907f9527b405a5e498.tar.gz mpd-a8866004743fd6b997da81907f9527b405a5e498.tar.xz mpd-a8866004743fd6b997da81907f9527b405a5e498.zip |
Added timer_get_runtime_ms to know how long the timer has been running
git-svn-id: https://svn.musicpd.org/mpd/trunk@6521 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/timer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h index c8018e260..61eaeb56f 100644 --- a/src/timer.h +++ b/src/timer.h @@ -23,6 +23,7 @@ #include "mpd_types.h" typedef struct _Timer { + uint64_t start_time; uint64_t time; int started; int rate; @@ -40,4 +41,6 @@ void timer_add(Timer *timer, int size); void timer_sync(Timer *timer); +int timer_get_runtime_ms(Timer *timer); + #endif |