From 06eb1f2e9e7968326b93f403b322db07164370b4 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 30 Nov 2014 23:04:35 +1100 Subject: [PATCH] Minor tweak to the Timer class; kind of pointless --- common/debugging/timer.cpp | 4 ++-- common/debugging/timer.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/debugging/timer.cpp b/common/debugging/timer.cpp index 29d107a..efcaf3b 100644 --- a/common/debugging/timer.cpp +++ b/common/debugging/timer.cpp @@ -39,7 +39,7 @@ void Timer::Stop() { std::ostream& operator<<(std::ostream& os, Timer& t) { os << t.GetName() << ": "; - os << std::chrono::duration_cast(t.GetTime()).count(); - os << "ms"; + os << std::chrono::duration_cast(t.GetTime()).count(); + os << "us"; return os; } diff --git a/common/debugging/timer.hpp b/common/debugging/timer.hpp index dfafec9..ac66419 100644 --- a/common/debugging/timer.hpp +++ b/common/debugging/timer.hpp @@ -34,8 +34,8 @@ public: Timer(std::string s); ~Timer() = default; - inline void Start(); - inline void Stop(); + void Start(); + void Stop(); //accessors and mutators Clock::duration GetTime() { return timeSpan; }