2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2012-08-14 19:02:26 +02:00
|
|
|
|
|
|
|
#ifndef MPD_CLOCK_H
|
|
|
|
#define MPD_CLOCK_H
|
|
|
|
|
2019-07-05 09:59:00 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
2019-05-08 15:42:47 +02:00
|
|
|
#include <chrono>
|
|
|
|
|
2013-11-24 20:41:00 +01:00
|
|
|
/**
|
|
|
|
* Returns the uptime of the current process in seconds.
|
|
|
|
*/
|
2021-10-13 11:28:04 +02:00
|
|
|
[[gnu::pure]]
|
2019-05-08 15:42:47 +02:00
|
|
|
std::chrono::seconds
|
2013-11-24 20:41:00 +01:00
|
|
|
GetProcessUptimeS();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2012-08-14 19:02:26 +02:00
|
|
|
#endif
|