hpp-fcl  1.7.3
HPP fork of FCL -- The Flexible Collision Library
hpp::fcl::Timer Struct Reference

This class mimics the way "boost/timer/timer.hpp" operates while using the modern std::chrono library. Importantly, this class will only have an effect for C++11 and more. More...

#include <hpp/fcl/timings.h>

Collaboration diagram for hpp::fcl::Timer:

Public Member Functions

 Timer ()
 
CPUTimes elapsed () const
 
void start ()
 
void stop ()
 
void resume ()
 
bool is_stopped () const
 

Protected Attributes

CPUTimes m_times
 
bool m_is_stopped
 

Detailed Description

This class mimics the way "boost/timer/timer.hpp" operates while using the modern std::chrono library. Importantly, this class will only have an effect for C++11 and more.

Constructor & Destructor Documentation

◆ Timer()

hpp::fcl::Timer::Timer ( )
inline

Member Function Documentation

◆ elapsed()

CPUTimes hpp::fcl::Timer::elapsed ( ) const
inline

◆ is_stopped()

bool hpp::fcl::Timer::is_stopped ( ) const
inline

◆ resume()

void hpp::fcl::Timer::resume ( )
inline

◆ start()

void hpp::fcl::Timer::start ( )
inline

◆ stop()

void hpp::fcl::Timer::stop ( )
inline

Member Data Documentation

◆ m_is_stopped

bool hpp::fcl::Timer::m_is_stopped
protected

◆ m_times

CPUTimes hpp::fcl::Timer::m_times
protected

The documentation for this struct was generated from the following file: