proxsuite 0.7.2
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
proxsuite::proxqp::Timer< T > Struct Template 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 <proxsuite/proxqp/timings.hpp>

Collaboration diagram for proxsuite::proxqp::Timer< T >:
[legend]

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
std::chrono::time_point< std::chrono::steady_clock > m_start
std::chrono::time_point< std::chrono::steady_clock > m_end

Detailed Description

template<typename T>
struct proxsuite::proxqp::Timer< T >

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.

Definition at line 35 of file timings.hpp.

Constructor & Destructor Documentation

◆ Timer()

template<typename T>
proxsuite::proxqp::Timer< T >::Timer()
inline

Definition at line 37 of file timings.hpp.

Member Function Documentation

◆ elapsed()

template<typename T>
CPUTimes proxsuite::proxqp::Timer< T >::elapsed()const
inline

Definition at line 43 of file timings.hpp.

◆ start()

template<typename T>
void proxsuite::proxqp::Timer< T >::start()
inline

Definition at line 60 of file timings.hpp.

◆ stop()

template<typename T>
void proxsuite::proxqp::Timer< T >::stop()
inline

Definition at line 69 of file timings.hpp.

◆ resume()

template<typename T>
void proxsuite::proxqp::Timer< T >::resume()
inline

Definition at line 83 of file timings.hpp.

◆ is_stopped()

template<typename T>
bool proxsuite::proxqp::Timer< T >::is_stopped()const
inline

Definition at line 89 of file timings.hpp.

Member Data Documentation

◆ m_times

template<typename T>
CPUTimes proxsuite::proxqp::Timer< T >::m_times
protected

Definition at line 92 of file timings.hpp.

◆ m_is_stopped

template<typename T>
bool proxsuite::proxqp::Timer< T >::m_is_stopped
protected

Definition at line 93 of file timings.hpp.

◆ m_start

template<typename T>
std::chrono::time_point<std::chrono::steady_clock> proxsuite::proxqp::Timer< T >::m_start
protected

Definition at line 95 of file timings.hpp.

◆ m_end

template<typename T>
std::chrono::time_point<std::chrono::steady_clock> proxsuite::proxqp::Timer< T >::m_end
protected

Definition at line 95 of file timings.hpp.


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