Electroneum
Public Member Functions | Protected Attributes | List of all members
tools::PerformanceTimer Class Reference

#include <perf_timer.h>

Inheritance diagram for tools::PerformanceTimer:
Inheritance graph
[legend]
Collaboration diagram for tools::PerformanceTimer:
Collaboration graph
[legend]

Public Member Functions

 PerformanceTimer (bool paused=false)
 
 ~PerformanceTimer ()
 
void pause ()
 
void resume ()
 
void reset ()
 
uint64_t value () const
 
 operator uint64_t () const
 

Protected Attributes

uint64_t ticks
 
bool started
 
bool paused
 

Constructor & Destructor Documentation

◆ PerformanceTimer()

tools::PerformanceTimer::PerformanceTimer ( bool  paused = false)

◆ ~PerformanceTimer()

tools::PerformanceTimer::~PerformanceTimer ( )

Member Function Documentation

◆ operator uint64_t()

tools::PerformanceTimer::operator uint64_t ( ) const
inline

◆ pause()

void tools::PerformanceTimer::pause ( )

◆ reset()

void tools::PerformanceTimer::reset ( )

◆ resume()

void tools::PerformanceTimer::resume ( )

◆ value()

uint64_t tools::PerformanceTimer::value ( ) const

Member Data Documentation

◆ paused

bool tools::PerformanceTimer::paused
protected

◆ started

bool tools::PerformanceTimer::started
protected

◆ ticks

uint64_t tools::PerformanceTimer::ticks
protected

The documentation for this class was generated from the following files: