HDK
|
#include <UT_TimeGate.h>
Public Member Functions | |
UT_TimeGateD () | |
void | setThreshold (int threshold_ms) |
bool | tryAcquire () |
bool | canAcquire () const |
void | acquire () |
Dynamic version of timegate where the tick threshold isn't hardcoded by the template specification.
Definition at line 69 of file UT_TimeGate.h.
|
inline |
Definition at line 72 of file UT_TimeGate.h.
|
inline |
Resets the gate so that canAcquire()/tryAcquire() will return false until at least TIMEOUT_MS has elapsed.
Definition at line 105 of file UT_TimeGate.h.
|
inline |
Return true if at least TIMEOUT_MS has elapsed from the last call to acquire(), without actually acquiring.
Definition at line 97 of file UT_TimeGate.h.
Definition at line 79 of file UT_TimeGate.h.
|
inline |
Return true if at least TIMEOUT_MS has elapsed from the last time this method returned true. Resolution is ~100ms.
Definition at line 86 of file UT_TimeGate.h.