|
| counter (counter const &)=delete |
|
| counter (counter &&)=delete |
|
counter & | operator= (counter const &)=delete |
|
counter & | operator= (counter &&)=delete |
|
| operator uint64_t () const noexcept |
|
void | log (std::string const &tag) noexcept |
| Log the counter.
|
|
counter & | operator= (std::integral auto count) noexcept |
| Rest the counter.
|
|
uint64_t | operator++ () noexcept |
|
uint64_t | operator++ (int) noexcept |
|
uint64_t | operator-- () noexcept |
|
uint64_t | operator-- (int) noexcept |
|
void | add_duration (uint64_t duration) noexcept |
| Add a duration.
|
|
|
static counter * | get_if (std::string const &name) noexcept |
| Get the named counter.
|
|
static void | log () noexcept |
|
static void | log_header () noexcept |
|
◆ add_duration()
void v1::detail::counter::add_duration |
( |
uint64_t | duration | ) |
|
|
inlinenoexcept |
◆ get_if()
Get the named counter.
- Precondition
- main() must have been started.
- Parameters
-
name | The name of the counter. |
- Returns
- A pointer to the counter, or nullptr if the counter is not found.
◆ log()
void v1::detail::counter::log |
( |
std::string const & | tag | ) |
|
|
inlinenoexcept |
Log the counter.
Log the counter.
◆ operator=()
counter & v1::detail::counter::operator= |
( |
std::integral auto | count | ) |
|
|
inlinenoexcept |
Rest the counter.
- Returns
- Old value of the
The documentation for this class was generated from the following file: