diff options
author | LC <mathew1800@gmail.com> | 2020-09-30 11:53:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 11:53:12 +0200 |
commit | cb56eaee41824b1ccf6a3e2508f718fd2bad76c4 (patch) | |
tree | 36c3b71a333472425e090251c46ee9fd9d946e28 | |
parent | Merge pull request #4735 from goldenx86/patch-1 (diff) | |
parent | common/wall_clock: Add virtual destructors (diff) | |
download | yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar.gz yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar.bz2 yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar.lz yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar.xz yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.tar.zst yuzu-cb56eaee41824b1ccf6a3e2508f718fd2bad76c4.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); |