...
Description
Gets current 32-bit CPU timestamp.anchor
Files
Anchor
cpu_core.h/cpu_core.c
Prototype
...
Code Block |
---|
...
HTML Table | |
---|---|
summary | |
class | Code_Listing |
Table Row (tr) | |
Table Cell (td) | |
Anchor | 1052328 | 1052328 | CPU_TS32
|
...
| |
CPU_TS32 CPU_TS_Get32 (void); |
...
...
Arguments
Anchor
Returned Value
Anchor
Required Configuration
...
Available only if CPU_CFG_TS_32_EN
is DEF_ENABLED
in cpu_cfg.h
(see section 6-1). Anchor
Notes / Warnings
...
- The amount of time measured by CPU timestamps is calculated by either of the following equations:
Anchor
Time measured = Number timer counts * Timer period
...
|
...
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 |
Anchor
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 | 1060616 | 1060616 |
---|
...
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
CPU_TS32 ts32; ts32 = CPU_TS_Get32(); /* Get current 32-bit CPU timestamp. */ |