2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2020-10-08 19:35:36 +02:00
|
|
|
|
|
|
|
#ifndef MPD_EVENT_CHRONO_HXX
|
|
|
|
#define MPD_EVENT_CHRONO_HXX
|
|
|
|
|
|
|
|
#include <chrono>
|
|
|
|
|
|
|
|
namespace Event {
|
|
|
|
|
|
|
|
/**
|
2021-02-04 20:45:43 +01:00
|
|
|
* The clock used by classes #EventLoop, #CoarseTimerEvent and #FineTimerEvent.
|
2020-10-08 19:35:36 +02:00
|
|
|
*/
|
|
|
|
using Clock = std::chrono::steady_clock;
|
|
|
|
|
|
|
|
using Duration = Clock::duration;
|
2021-02-05 13:05:00 +01:00
|
|
|
using TimePoint = Clock::time_point;
|
2020-10-08 19:35:36 +02:00
|
|
|
|
|
|
|
} // namespace Event
|
|
|
|
|
|
|
|
#endif /* MAIN_NOTIFY_H */
|