|
libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Measure a time interval via RAII. More...
#include <hp_timer.hpp>
Public Types | |
| typedef T | timer_t |
| The underlying timer-type. More... | |
Public Member Functions | |
| __stdcall | hp_interval (timer_t const &t, typename timer_t::time_utc_t &i) noexcept(true) |
| Construct an interval-measurer on the stack. More... | |
| hp_interval (hp_interval const &)=delete | |
| __stdcall | ~hp_interval () noexcept(true) |
Public Attributes | |
| timer_t const & | timer |
| The timer to use. More... | |
| const timer_t::time_utc_t | start |
Measure a time interval via RAII.
Definition at line 75 of file hp_timer.hpp.
| typedef T jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::timer_t |
The underlying timer-type.
Definition at line 76 of file hp_timer.hpp.
|
inlineexplicitnoexcept |
Construct an interval-measurer on the stack.
| t | The timer to use. |
| i | A reference to the interval to be set in the dtor. |
Definition at line 85 of file hp_timer.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::start, and jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::timer.
|
delete |
|
inlinenoexcept |
Set the interval in units of hp_timer::value_type, using the timer given in the ctor.
Definition at line 157 of file hp_timer.hpp.
| const timer_t::time_utc_t jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::start |
The time this object was created.
Definition at line 79 of file hp_timer.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::hp_interval().
| timer_t const& jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::timer |
The timer to use.
Definition at line 78 of file hp_timer.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::hp_interval< T >::hp_interval().