fix8
version 1.4.0
Open Source C++ FIX Framework
|
High resolution interval timer. More...
#include <timer.hpp>
Public Member Functions | |
IntervalTimer () | |
Ctor. RAII. More... | |
virtual | ~IntervalTimer () |
Dtor. More... | |
const IntervalTimer & | Calculate () |
double | AsDouble () const |
double | Reset () |
Private Attributes | |
Tickval | startTime_ |
Tickval | delta_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const IntervalTimer &what) |
|
inlinevirtual |
|
inline |
Get delta as a double.
Definition at line 278 of file timer.hpp.
References FIX8::Tickval::todouble().
Referenced by FIX8::Message::encode(), FIX8::Message::factory(), and Reset().
|
inline |
Calculate elapsed time (delta).
Definition at line 262 of file timer.hpp.
References startTime_.
Referenced by FIX8::Message::encode(), and FIX8::Message::factory().
|
inline |
Reset the interval start time.
Definition at line 283 of file timer.hpp.
References AsDouble(), and FIX8::Tickval::now().
|
friend |
Format the interval to 9 decimal places, insert into stream.
os | the stream to insert into |
what | the IntervalTimer object |
Definition at line 299 of file timer.hpp.
|
private |
Definition at line 246 of file timer.hpp.
Referenced by Calculate().