HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
v1::detail::counter Class Reference
Inheritance diagram for v1::detail::counter:
v1::detail::tagged_counter< Tag >

Public Member Functions

 counter (counter const &)=delete
 
 counter (counter &&)=delete
 
counteroperator= (counter const &)=delete
 
counteroperator= (counter &&)=delete
 
 operator uint64_t () const noexcept
 
void log (std::string const &tag) noexcept
 Log the counter.
 
counteroperator= (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 Public Member Functions

static counterget_if (std::string const &name) noexcept
 Get the named counter.
 
static void log () noexcept
 
static void log_header () noexcept
 

Member Function Documentation

◆ add_duration()

void v1::detail::counter::add_duration ( uint64_t duration)
inlinenoexcept

Add a duration.

◆ get_if()

static counter * v1::detail::counter::get_if ( std::string const & name)
inlinestaticnoexcept

Get the named counter.

Precondition
main() must have been started.
Parameters
nameThe 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: