From 85b51e4e779360a4f2ead4404bf4d6b547f6d49d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 24 Nov 2013 20:41:00 +0100 Subject: Stats: use GetProcessTimes() on WIN32 to determine MPD uptime Don't use GTimer if the operating system is able to tell us the uptime. --- src/system/Clock.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/system/Clock.hxx') diff --git a/src/system/Clock.hxx b/src/system/Clock.hxx index 7be1127bf..28df0c7e0 100644 --- a/src/system/Clock.hxx +++ b/src/system/Clock.hxx @@ -38,4 +38,15 @@ gcc_pure uint64_t MonotonicClockUS(); +#ifdef WIN32 + +/** + * Returns the uptime of the current process in seconds. + */ +gcc_pure +unsigned +GetProcessUptimeS(); + +#endif + #endif -- cgit v1.2.3