AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
#include <timer.h>
Public Member Functions | |
AJATimer (const AJATimerPrecision precision=AJATimerPrecisionMilliseconds) | |
virtual | ~AJATimer () |
void | Start (void) |
void | Stop (void) |
void | Reset (void) |
uint32_t | ElapsedTime (void) const |
double | ETSecs (void) const |
bool | Timeout (const uint32_t interval) const |
bool | IsRunning (void) const |
AJATimerPrecision | Precision (void) const |
std::ostream & | Print (std::ostream &oss) const |
Static Public Member Functions | |
static std::string | PrecisionName (const AJATimerPrecision precision, const bool longName=true) |
static double | PrecisionSecs (const AJATimerPrecision precision) |
AJATimer::AJATimer | ( | const AJATimerPrecision | precision = AJATimerPrecisionMilliseconds | ) |
uint32_t AJATimer::ElapsedTime | ( | void | ) | const |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
std::ostream & AJATimer::Print | ( | std::ostream & | oss | ) | const |
void AJATimer::Reset | ( | void | ) |
void AJATimer::Start | ( | void | ) |
void AJATimer::Stop | ( | void | ) |
|
inline |
Check for timeout.
Timeout checks the ElapsedTime() and returns true if it is greater than interval.
interval | Timeout interval in selected timer precision units. |