mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-17 20:32:45 +01:00
be1954e04c
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
24 lines
741 B
C++
24 lines
741 B
C++
// Copyright 2008 Dolphin Emulator Project / 2017 Citra Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Core::Timing {
|
|
|
|
s64 msToCycles(std::chrono::milliseconds ms);
|
|
s64 usToCycles(std::chrono::microseconds us);
|
|
s64 nsToCycles(std::chrono::nanoseconds ns);
|
|
u64 msToClockCycles(std::chrono::milliseconds ms);
|
|
u64 usToClockCycles(std::chrono::microseconds us);
|
|
u64 nsToClockCycles(std::chrono::nanoseconds ns);
|
|
std::chrono::milliseconds CyclesToMs(s64 cycles);
|
|
std::chrono::nanoseconds CyclesToNs(s64 cycles);
|
|
std::chrono::microseconds CyclesToUs(s64 cycles);
|
|
|
|
u64 CpuCyclesToClockCycles(u64 ticks);
|
|
|
|
} // namespace Core::Timing
|