2023-03-12 19:57:20 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
2020-10-08 19:35:36 +02:00
|
|
|
|
2023-03-12 19:57:20 +01:00
|
|
|
#pragma once
|
2020-10-08 19:35:36 +02:00
|
|
|
|
|
|
|
#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
|