google / google/benchmark

Timer names are weird

Open
#671 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
10.4k
Forks
1.8k
Avg merge
2d 4h
Merged PRs (30d)
8

Description

I'm not sure if this can be changed in v2, but i trip on it every time.

| Textual description | googlebenchmark name | common(?) name | `TIME(1)` | C++ |
| ------------------------ | ------------------------------- |------------------- |-----|-----|
| the time that has passed on your usual [clock](https://en.wikipedia.org/wiki/Clock) | `Time` | `wall clock` | `real`, `Elapsed (wall clock)` | `high_resolution_clock` / `steady_clock` |
| the time spent in the main thread only | `CPU` | ? | ? | `clock_gettime(CLOCK_THREAD_CPUTIME_ID)` |
| the total amount of the time the processor[s] has spent doing something (all threads combined) | - (i miss it) | ? | `user` | `clock` |

This is really confusing, i think.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.