Enhance StopWatch
Clean up, comments and enhancements. StopWatch lap() didn't mean lap-time, but elapsed time. Changed meaning to lap-time and added split() for split-time.
This commit is contained in:
@ -42,7 +42,7 @@ void EventCount::increment()
|
||||
if (m_timestamps.empty()
|
||||
|| m_timestamps.back().time_point.time_since_epoch().count() != ticks)
|
||||
{
|
||||
m_timestamps.emplace_back(TimePoint(ticks), 1);
|
||||
m_timestamps.emplace_back(TimePoint(Duration(nanoseconds(ticks))), 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user