mpd/src/event/Chrono.hxx

22 lines
439 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_EVENT_CHRONO_HXX
#define MPD_EVENT_CHRONO_HXX
#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
#endif /* MAIN_NOTIFY_H */