gr::Utils::Timer Class Reference

#include <timer.h>

+ Collaboration diagram for gr::Utils::Timer:

Public Types

typedef std::chrono::high_resolution_clock clock
 
typedef std::chrono::nanoseconds timestep
 

Public Member Functions

timestep elapsed () const
 
void reset ()
 
 Timer (bool run=false)
 

Friends

template<typename T , typename Traits >
std::basic_ostream< T, Traits > & operator<< (std::basic_ostream< T, Traits > &out, const Timer &timer)
 

Member Typedef Documentation

typedef std::chrono::high_resolution_clock gr::Utils::Timer::clock
typedef std::chrono::nanoseconds gr::Utils::Timer::timestep

Constructor & Destructor Documentation

gr::Utils::Timer::Timer ( bool  run = false)
inlineexplicit

+ Here is the call graph for this function:

Member Function Documentation

timestep gr::Utils::Timer::elapsed ( ) const
inline
void gr::Utils::Timer::reset ( )
inline

Friends And Related Function Documentation

template<typename T , typename Traits >
std::basic_ostream<T, Traits>& operator<< ( std::basic_ostream< T, Traits > &  out,
const Timer timer 
)
friend

The documentation for this class was generated from the following file:
  • /home/travis/build/STORM-IRIT/OpenGR/src/gr/utils/timer.h