diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-09-29 21:19:37 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-09-30 07:53:34 +0200 |
commit | 771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7 (patch) | |
tree | 13b3f85a3024a574606639c82d58ed1e83597332 | |
parent | Merge pull request #4721 from lioncash/genfn (diff) | |
download | yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar.gz yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar.bz2 yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar.lz yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar.xz yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.tar.zst yuzu-771a9c21cc2f401cb9fd653cefcfe9da78b8f1a7.zip |
-rw-r--r-- | src/common/wall_clock.cpp | 2 | ||||
-rw-r--r-- | src/common/wall_clock.h | 2 | ||||
-rw-r--r-- | src/common/x64/native_clock.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index 3afbdb898..7a20e95b7 100644 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp @@ -15,7 +15,7 @@ namespace Common { using base_timer = std::chrono::steady_clock; using base_time_point = std::chrono::time_point<base_timer>; -class StandardWallClock : public WallClock { +class StandardWallClock final : public WallClock { public: StandardWallClock(u64 emulated_cpu_frequency, u64 emulated_clock_frequency) : WallClock(emulated_cpu_frequency, emulated_clock_frequency, false) { diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h index 5db30083d..bc7adfbf8 100644 --- a/src/common/wall_clock.h +++ b/src/common/wall_clock.h @@ -13,6 +13,8 @@ namespace Common { class WallClock { public: + virtual ~WallClock() = default; + /// Returns current wall time in nanoseconds [[nodiscard]] virtual std::chrono::nanoseconds GetTimeNS() = 0; diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h index 891a3bbfd..7c503df26 100644 --- a/src/common/x64/native_clock.h +++ b/src/common/x64/native_clock.h @@ -12,7 +12,7 @@ namespace Common { namespace X64 { -class NativeClock : public WallClock { +class NativeClock final : public WallClock { public: NativeClock(u64 emulated_cpu_frequency, u64 emulated_clock_frequency, u64 rtsc_frequency); |