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

#include <hpp/util/timer.hh>

Public Types

typedef std::chrono::steady_clock clock_type
 
typedef clock_type::time_point time_point
 
typedef std::chrono::duration< doubleduration_type
 

Public Member Functions

 Timer (bool autoStart=false)
 
 Timer (const Timer &)
 
Timeroperator= (const Timer &)
 
 ~Timer ()
 
const time_pointstart ()
 
const time_pointstop ()
 
double duration () const
 
const time_pointgetStart () const
 
const time_pointgetStop () const
 
std::ostream & print (std::ostream &) const
 

Member Typedef Documentation

◆ clock_type

typedef std::chrono::steady_clock hpp::debug::Timer::clock_type

◆ duration_type

◆ time_point

typedef clock_type::time_point hpp::debug::Timer::time_point

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()

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

◆ getStart()

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

◆ getStop()

const Timer::time_point & 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::time_point & hpp::debug::Timer::start ( )

◆ stop()

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

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