hpp-util 7.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
hpp::debug::TimeCounter Class Reference

Computation of min, max and mean time from a set of measurements. More...

#include <hpp/util/timer.hh>

Classes

struct  Scope

Public Types

typedef std::chrono::system_clock clock_type
typedef clock_type::time_point time_point
typedef std::chrono::duration< double > duration_type

Public Member Functions

 TimeCounter (const std::string &name)
void start ()
double stop ()
double last ()
void reset ()
double min () const
double max () const
double mean () const
double totalTime () const
std::ostream & print (std::ostream &os) const

Detailed Description

Computation of min, max and mean time from a set of measurements.

Member Typedef Documentation

◆ clock_type

typedef std::chrono::system_clock hpp::debug::TimeCounter::clock_type

◆ duration_type

typedef std::chrono::duration<double> hpp::debug::TimeCounter::duration_type

◆ time_point

typedef clock_type::time_point hpp::debug::TimeCounter::time_point

Constructor & Destructor Documentation

◆ TimeCounter()

hpp::debug::TimeCounter::TimeCounter(const std::string &name)

Member Function Documentation

◆ last()

double hpp::debug::TimeCounter::last()

◆ max()

double hpp::debug::TimeCounter::max()const

◆ mean()

double hpp::debug::TimeCounter::mean()const

◆ min()

double hpp::debug::TimeCounter::min()const

◆ print()

std::ostream & hpp::debug::TimeCounter::print(std::ostream &os)const

◆ reset()

void hpp::debug::TimeCounter::reset()

◆ start()

void hpp::debug::TimeCounter::start()

◆ stop()

double hpp::debug::TimeCounter::stop()

◆ totalTime()

double hpp::debug::TimeCounter::totalTime()const

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