#include <otTimeTrap.h>
Public Types | |
| typedef otTimeTrap::TimeBase | TimeBase |
| Time base units. | |
| enum | TimeBase { TB_US, TB_MS, TB_S } |
Public Member Functions | |
| otTimeTrap () | |
| bool | init (U16 events, U16 tid) |
| void | close () |
| U16 | addTrap (timeTrapCallback proc, U64 time, TimeBase tb) |
| void | sync () |
| void | sync (U16 npar,...) |
| U16 | process (U32 minDelay=100) |
| U64 | elapsedTime (U16 id) |
| U64 | period (U16 id) |
| S64 | jitter (U16 id) |
| void | setDelay (U64 dly) |
| bool | delayDone () |
| void | delayUs (U64 dly) |
| void | delayMs (U64 dly) |
| U64 | counts () |
| U64 | time (U16 &h, U16 &m, U16 &s) |
|
|
|
|
|
|
|
|
Create the class |
|
||||||||||||||||
|
Add a time trap to execute a specific process
|
|
|
Free all allocated resources |
|
|
Reads the internal 64-bit counter
|
|
|
Check that a set delay has been performed.
|
|
|
Performs a non-blocking delay until completion. If the delay value is long enough, more processes are performed.
|
|
|
Performs a non-blocking delay until completion. If the delay value is long enough, more processes are performed.
|
|
|
Return elapsed time for a specific process id.
|
|
||||||||||||
|
Init the class
|
|
|
Return jitter from a specific process.
|
|
|
Return the actual period achieved by a specific process.
|
|
|
Call this method continuously.
|
|
|
Set a non-blocking delay
|
|
||||||||||||
|
Synchronize all processes to run with different time offset as us
|
|
|
Synchronize all processes to run. |
|
||||||||||||||||
|
Return the internal 64-bit counter and show it as hour, minute, second
|