B2BITS FIX Antenna HFT
1.0.16
|
#include <TimeUtils.h>
Public Member Functions | |
enum PeriodTimerState | getEdgeTriggeredState () |
void | init (bool enableTriggerNow, const Engine::UTCTimeOnly &periodStart, const Engine::UTCTimeOnly &periodEnd) |
void | init (bool enableTriggerNow, const Engine::UTCTimeOnly &periodStart, const Engine::UTCTimeOnly &periodEnd, const Engine::UTCTimeOnly &now) |
bool | isNowWithinPeriod () |
bool | isWithinPeriod (const Engine::UTCTimeOnly &now) |
PeriodTimer () | |
void | tick (const Engine::UTCTimeOnly &now) |
Public Attributes | |
bool | initialized_ |
Engine::UTCTimeOnly | periodEnd_ |
Engine::UTCTimeOnly | periodStart_ |
enum PeriodTimerState | state_ |
bool | wasWithinPeriodOnLastTick_ |
|
inline |
|
inline |
References initialized_, NO_CHANGE_SINCE_LAST_CHECK, and state_.
|
inline |
References Engine::UTCTimeOnly::now().
|
inline |
|
inline |
References initialized_, isWithinPeriod(), and Engine::UTCTimeOnly::now().
|
inline |
References initialized_, isWithinTimePeriod(), periodEnd_, and periodStart_.
Referenced by isNowWithinPeriod().
|
inline |
bool PeriodTimer::initialized_ |
Referenced by getEdgeTriggeredState(), init(), isNowWithinPeriod(), isWithinPeriod(), and tick().
Engine::UTCTimeOnly PeriodTimer::periodEnd_ |
Referenced by init(), isWithinPeriod(), and tick().
Engine::UTCTimeOnly PeriodTimer::periodStart_ |
Referenced by init(), isWithinPeriod(), and tick().
enum PeriodTimerState PeriodTimer::state_ |
Referenced by getEdgeTriggeredState(), init(), and tick().