Stats: use GetProcessTimes() on WIN32 to determine MPD uptime
Don't use GTimer if the operating system is able to tell us the uptime.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user