mpd/src/event/Chrono.hxx

19 lines
370 B
C++
Raw Normal View History

2023-03-12 19:57:20 +01:00
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
2023-03-12 19:57:20 +01:00
#pragma once
#include <chrono>
namespace Event {
/**
* The clock used by classes #EventLoop, #CoarseTimerEvent and #FineTimerEvent.
*/
using Clock = std::chrono::steady_clock;
using Duration = Clock::duration;
2021-02-05 13:05:00 +01:00
using TimePoint = Clock::time_point;
} // namespace Event