mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
26 lines
451 B
C++
26 lines
451 B
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "common/types.h"
|
|
|
|
namespace Common {
|
|
|
|
class NativeClock final {
|
|
public:
|
|
explicit NativeClock();
|
|
|
|
u64 GetTimeUS(u64 time) const;
|
|
|
|
u64 GetUptime() const;
|
|
u64 GetUnbiasedUptime() const;
|
|
u64 GetTscFrequency() const;
|
|
|
|
private:
|
|
u64 rdtsc_frequency;
|
|
u64 us_rdtsc_factor;
|
|
};
|
|
|
|
} // namespace Common
|