1 #ifndef CARMA_UTIL_PERIODIC_TIMER_H
2 #define CARMA_UTIL_PERIODIC_TIMER_H
8 #include "carma/util/ScheduledTimer.h"
45 bool preflight =
true );
53 bool preflight =
true );
91 virtual struct ::timespec CalculateNextFireAbsoluteTime(
const struct ::timespec & fireAbsoluteTime );
94 const struct ::timespec period_;
PeriodicTimer(const struct::timespec &period, bool preflight=true)
Construct an instance with the given period.
Abstract base class for PthreadCond::TimedWait based timers.
void ResetNextFireAbsoluteTimeAndWait(const struct::timespec &nextFireAbsoluteTime)
Same as ResetNextFireAbsoluteTime( const struct ::timespec & ) except that this method also waits for...
Timer object that fires at a fixed rate.
void ResetNextFireAbsoluteTime(const struct::timespec &nextFireAbsoluteTime)
Reset the next fire time (and by association the entire queue of fire times) for this instance...