pineapple/src/common/steady_clock.h

24 lines
501 B
C
Raw Normal View History

2023-03-04 09:58:45 +01:00
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2023-03-05 17:19:00 +01:00
#pragma once
2023-03-04 09:58:45 +01:00
#include <chrono>
#include "common/common_types.h"
namespace Common {
struct SteadyClock {
using rep = s64;
using period = std::nano;
using duration = std::chrono::nanoseconds;
using time_point = std::chrono::time_point<SteadyClock>;
static constexpr bool is_steady = true;
[[nodiscard]] static time_point Now() noexcept;
};
} // namespace Common