hpp::debug::TimeCounter Class Reference

#include <hpp/util/timer.hh>

List of all members.

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Referenced by print(), and stop().

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

Referenced by print().

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

Referenced by print(), and stop().

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

References max(), mean(), min(), and totalTime().

Referenced by hpp::debug::operator<<().

void hpp::debug::TimeCounter::reset ( )
void hpp::debug::TimeCounter::start ( )
TimeCounter::time_duration hpp::debug::TimeCounter::stop ( )

References max(), and min().

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

Referenced by print().