Minor tweak to the Timer class; kind of pointless
This commit is contained in:
@@ -39,7 +39,7 @@ void Timer::Stop() {
|
|||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, Timer& t) {
|
std::ostream& operator<<(std::ostream& os, Timer& t) {
|
||||||
os << t.GetName() << ": ";
|
os << t.GetName() << ": ";
|
||||||
os << std::chrono::duration_cast<std::chrono::milliseconds>(t.GetTime()).count();
|
os << std::chrono::duration_cast<std::chrono::microseconds>(t.GetTime()).count();
|
||||||
os << "ms";
|
os << "us";
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public:
|
|||||||
Timer(std::string s);
|
Timer(std::string s);
|
||||||
~Timer() = default;
|
~Timer() = default;
|
||||||
|
|
||||||
inline void Start();
|
void Start();
|
||||||
inline void Stop();
|
void Stop();
|
||||||
|
|
||||||
//accessors and mutators
|
//accessors and mutators
|
||||||
Clock::duration GetTime() { return timeSpan; }
|
Clock::duration GetTime() { return timeSpan; }
|
||||||
|
|||||||
Reference in New Issue
Block a user