mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-27 10:54:30 +01:00
22 lines
317 B
C++
22 lines
317 B
C++
#pragma once
|
|
|
|
#include <util/asm.hpp>
|
|
#include <util/sysinfo.hpp>
|
|
|
|
#include "Emu/Cell/timers.hpp"
|
|
|
|
namespace rsx
|
|
{
|
|
static inline u64 uclock()
|
|
{
|
|
if (const u64 freq = (utils::get_tsc_freq() / 1000000))
|
|
{
|
|
return utils::get_tsc() / freq;
|
|
}
|
|
else
|
|
{
|
|
return get_system_time();
|
|
}
|
|
}
|
|
}
|