You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -749,10 +749,6 @@ and `Counter` values. The latter is a `double`-like class, via an implicit
749
749
conversion to `double&`. Thus you can use all of the standard arithmetic
750
750
assignment operators (`=,+=,-=,*=,/=`) to change the value of each counter.
751
751
752
-
In multithreaded benchmarks, each counter is set on the calling thread only.
753
-
When the benchmark finishes, the counters from each thread will be summed;
754
-
the resulting sum is the value which will be shown for the benchmark.
755
-
756
752
The `Counter` constructor accepts three parameters: the value as a `double`
757
753
; a bit flag which allows you to show counters as rates, and/or as per-thread
758
754
iteration, and/or as per-thread averages, and/or iteration invariants,
@@ -797,6 +793,10 @@ You can use `insert()` with `std::initializer_list`:
797
793
```
798
794
<!-- {% endraw %} -->
799
795
796
+
In multithreaded benchmarks, each counter is set on the calling thread only.
797
+
When the benchmark finishes, the counters from each thread will be summed.
798
+
Counters that are configured with `kIsRate`, will report the average rate across all threads, while `kAvgThreadsRate` counters will report the average rate per thread.
799
+
800
800
### Counter Reporting
801
801
802
802
When using the console reporter, by default, user counters are printed at
0 commit comments