Skip to content

Commit dbb6479

Browse files
committed
Doc update
1 parent cabfc23 commit dbb6479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/SimpleTimer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ constexpr bool isDuration<std::chrono::duration<Rep, Period>> = true;
1414

1515
template <typename Duration> class SimpleTimerContext;
1616

17-
// Simple replacement for medida timer that uses an accumulator and counter,
17+
// Simple replacement for medida timer that uses an accumulator and counter
1818
// while keeping track of the maximums. Names are based on the constructor with
1919
// a suffix of `sum`, `count`, or `max`. Timers can be expensive, so this class
2020
// replaces them with a subset of the functionality using Counters internally.
@@ -26,7 +26,7 @@ template <typename Duration> class SimpleTimer
2626
medida::Counter& mSum;
2727
medida::Counter& mCount;
2828
// Note that we use a counter for `mMax` so it gets displayed in the
29-
// metrics, but this is only synced on `syncMetrics()` to avoid races.
29+
// metrics, but this is only synced on `syncMax()` to avoid races.
3030
medida::Counter& mMaxCounter;
3131
std::mutex mMaxLock;
3232
std::int64_t mMax;

0 commit comments

Comments
 (0)