aboutsummaryrefslogtreecommitdiff
path: root/src/core/host_timing.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-10 11:20:40 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-18 16:29:18 -0400
commit0c789667d9e7ac0f88ad98dd513ded523b35b27a (patch)
tree1454fe38bdafd94ada74ae5f1209a7466bbf4e78 /src/core/host_timing.cpp
parentee32067b10b242aebed3aa831ba3b8c77a9e0904 (diff)
Common: Refactor & Document Wall clock.
Diffstat (limited to 'src/core/host_timing.cpp')
-rw-r--r--src/core/host_timing.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/host_timing.cpp b/src/core/host_timing.cpp
index ef9977b760..4ccf7c6c1c 100644
--- a/src/core/host_timing.cpp
+++ b/src/core/host_timing.cpp
@@ -36,8 +36,7 @@ struct CoreTiming::Event {
};
CoreTiming::CoreTiming() {
- Common::WallClock* wall = Common::CreateBestMatchingClock(Core::Timing::BASE_CLOCK_RATE, Core::Timing::CNTFREQ);
- clock = std::unique_ptr<Common::WallClock>(wall);
+ clock = Common::CreateBestMatchingClock(Core::Timing::BASE_CLOCK_RATE, Core::Timing::CNTFREQ);
}
CoreTiming::~CoreTiming() = default;