diff options
author | Max Kellermann <max@duempel.org> | 2013-11-24 21:14:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-24 21:14:38 +0100 |
commit | 529b4bd185eb130580c09c24450d80d62c9ae769 (patch) | |
tree | a002854fefe89cb1eaa16ac0b45558e6ea20478f /src/system/Clock.hxx | |
parent | 85b51e4e779360a4f2ead4404bf4d6b547f6d49d (diff) | |
download | mpd-529b4bd185eb130580c09c24450d80d62c9ae769.tar.gz mpd-529b4bd185eb130580c09c24450d80d62c9ae769.tar.xz mpd-529b4bd185eb130580c09c24450d80d62c9ae769.zip |
Stats: use monotonic clock instead of GTimer
Reduce GLib usage.
Diffstat (limited to 'src/system/Clock.hxx')
-rw-r--r-- | src/system/Clock.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system/Clock.hxx b/src/system/Clock.hxx index 28df0c7e0..1c3651a99 100644 --- a/src/system/Clock.hxx +++ b/src/system/Clock.hxx @@ -25,6 +25,13 @@ #include <stdint.h> /** + * Returns the value of a monotonic clock in seconds. + */ +gcc_pure +unsigned +MonotonicClockS(); + +/** * Returns the value of a monotonic clock in milliseconds. */ gcc_pure |