hpp-util  4.9.0
Debugging tools for the HPP project.
hpp::debug::Timer Class Reference

#include <hpp/util/timer.hh>

Public Types

typedef boost::posix_time::ptime ptime
 
typedef boost::posix_time::time_duration time_duration
 
typedef boost::posix_time::time_period time_period
 

Public Member Functions

 Timer (bool autoStart=false)
 
 Timer (const Timer &)
 
Timeroperator= (const Timer &)
 
 ~Timer ()
 
const ptimestart ()
 
const ptimestop ()
 
time_duration duration () const
 
const ptimegetStart () const
 
const ptimegetStop () const
 
std::ostream & print (std::ostream &) const
 

Member Typedef Documentation

◆ ptime

typedef boost::posix_time::ptime hpp::debug::Timer::ptime

◆ time_duration

typedef boost::posix_time::time_duration hpp::debug::Timer::time_duration

◆ time_period

typedef boost::posix_time::time_period hpp::debug::Timer::time_period

Constructor & Destructor Documentation

◆ Timer() [1/2]

hpp::debug::Timer::Timer ( bool  autoStart = false)
explicit

◆ Timer() [2/2]

hpp::debug::Timer::Timer ( const Timer timer)

◆ ~Timer()

hpp::debug::Timer::~Timer ( )

Member Function Documentation

◆ duration()

Timer::time_duration hpp::debug::Timer::duration ( ) const

◆ getStart()

const Timer::ptime & hpp::debug::Timer::getStart ( ) const

◆ getStop()

const Timer::ptime & hpp::debug::Timer::getStop ( ) const

◆ operator=()

Timer & hpp::debug::Timer::operator= ( const Timer timer)

◆ print()

std::ostream & hpp::debug::Timer::print ( std::ostream &  o) const

◆ start()

const Timer::ptime & hpp::debug::Timer::start ( )

◆ stop()

const Timer::ptime & hpp::debug::Timer::stop ( )

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