Minor tweak to the Timer class; kind of pointless

This commit is contained in:
Kayne Ruse
2014-11-30 23:04:35 +11:00
parent ba81bcba69
commit 06eb1f2e9e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ void Timer::Stop() {
std::ostream& operator<<(std::ostream& os, Timer& t) {
os << t.GetName() << ": ";
os << std::chrono::duration_cast<std::chrono::milliseconds>(t.GetTime()).count();
os << "ms";
os << std::chrono::duration_cast<std::chrono::microseconds>(t.GetTime()).count();
os << "us";
return os;
}
+2 -2
View File
@@ -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; }