diff options
author | amazingfate <liujianfeng1994@gmail.com> | 2023-11-27 02:25:18 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-11-27 02:44:07 +0100 |
commit | a76a8fb5fecb4731a9a9231f3e06d5743c34e090 (patch) | |
tree | 5b7b163235de2c0ea47b5ea5e698715397fe14d3 /src/common/wall_clock.cpp | |
parent | general: fix mac compile (diff) | |
download | yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.gz yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.bz2 yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.lz yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.xz yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.zst yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.zip |
Diffstat (limited to 'src/common/wall_clock.cpp')
-rw-r--r-- | src/common/wall_clock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index caca9a123..012fdc1e0 100644 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp @@ -10,7 +10,7 @@ #include "common/x64/rdtsc.h" #endif -#if defined(ARCHITECTURE_arm64) && defined(__linux__) +#ifdef HAS_NCE #include "common/arm64/native_clock.h" #endif @@ -68,7 +68,7 @@ std::unique_ptr<WallClock> CreateOptimalClock() { // - Is not more precise than 1 GHz (1ns resolution) return std::make_unique<StandardWallClock>(); } -#elif defined(ARCHITECTURE_arm64) && defined(__linux__) +#elif defined(HAS_NCE) return std::make_unique<Arm64::NativeClock>(); #else return std::make_unique<StandardWallClock>(); |