hpp-util  4.9.0
Debugging tools for the HPP project.
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 boost::posix_time::ptime ptime
 
typedef boost::posix_time::time_duration time_duration
 

Public Member Functions

 TimeCounter (const std::string &name)
 
void start ()
 
time_duration stop ()
 
time_duration last ()
 
void reset ()
 
time_duration min () const
 
time_duration max () const
 
time_duration mean () const
 
time_duration 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

◆ ptime

typedef boost::posix_time::ptime hpp::debug::TimeCounter::ptime

◆ time_duration

typedef boost::posix_time::time_duration hpp::debug::TimeCounter::time_duration

Constructor & Destructor Documentation

◆ TimeCounter()

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

Member Function Documentation

◆ last()

TimeCounter::time_duration hpp::debug::TimeCounter::last ( )

◆ max()

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

◆ mean()

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

◆ min()

TimeCounter::time_duration 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()

TimeCounter::time_duration hpp::debug::TimeCounter::stop ( )

◆ totalTime()

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

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