...
cpu_core.h/cpu_core.c
Prototype
Code Block | ||
---|---|---|
| ||
CPU_TS32 CPU_TS_Get32 (void); |
Arguments
None.
Returned Value
...
| Number of timer counts measured |
| Timer’s period in some units of (fractional) seconds |
| Amount of time measured, in same units of (fractional) seconds as the Timer period |
Time measured = Number timer counts / Timer frequency
| Number of timer counts measured |
| Timer’s frequency in some units of counts per second |
| Amount of time measured, in seconds |
Example Usage
Anchor | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
CPU_TS32 ts32;
ts32 = CPU_TS_Get32(); /* Get current 32-bit CPU timestamp. */ |