google / google/benchmark

Timers need some work.

Open
#620 3 comments 0 reactions 1 assignee Claimed by @LebedevRI View on GitHub
enhancement
Dominant language
C++
Stars
10.4k
Forks
1.8k
Avg merge
2d 4h
Merged PRs (30d)
8

Description

I think something much like custom stats, custom counters is needed for timers.
(Personally, i miss the `std::clock`-based timer.)
The `UseManualTime()`/`UseRealTime()` should also be just one `UseTimer(name)`.

Also in v2, once json is here, it would be great to be able to read those values,
and generate custom stats based on them.

I'm also wondering if there are any sane ideas for the interface for these timers.
Currently, there is only a `SetIterationTime()`, which needs to be called every iteration.

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.