1 #ifndef CARMA_UTIL_FRAME_ALIGNED_TIMER_H
2 #define CARMA_UTIL_FRAME_ALIGNED_TIMER_H
8 #include "carma/util/ScheduledTimer.h"
50 long periodFrames = 1,
51 bool preflight =
true );
82 struct ::timespec getNextFireTime( );
86 CalculateNextFireAbsoluteTime(
const Timespec & fireAbsTime );
88 Timespec InternalResetNextFireTime(
long delayFrames,
92 const Timespec period_;
93 const long offsetNanos_;
FrameAlignedTimer(long offsetNanos=0, long periodFrames=1, bool preflight=true)
Construct an instance with the given offset and period.
struct::timespec ResetNextFireTimeAndWait(long delayFrames=0)
Same as ResetNextFireTime( ) except that this method also waits for the new next fire time to arrive ...
Abstract base class for PthreadCond::TimedWait based timers.
struct::timespec ResetNextFireTime(long delayFrames=0)
Reset the next fire time (and by association the entire queue of fire times) to the soonest absolute ...
Timer object that fires at a fixed offset after every Nth CARMA frame time.