Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.

CPU_TS_Get32()

Gets current 32-bit CPU timestamp.

Files

cpu_core.h/cpu_core.c

Prototype

 

CPU_TS32 CPU_TS_Get32 (void);

Arguments

None.

Returned Value

None.

Required Configuration

Available only if CPU_CFG_TS_32_EN is DEF_ENABLED in cpu_cfg.h (see section 6-1).

Notes / Warnings

The amount of time measured by CPU timestamps is calculated by either of the following equations:

Time measured = Number timer counts * Timer period

 

Number timer counts

Number of timer counts measured

Timer period

Timer’s period in some units of (fractional) seconds

Time measured

Amount of time measured, in same units of (fractional) seconds as the Timer period

Time measured = Number timer counts / Timer frequency

 

Number timer counts

Number of timer counts measured

Timer frequency

Timer’s frequency in some units of counts per second

Time measured

Amount of time measured, in seconds

Example Usage

 

CPU_TS32 ts32;

 

ts32 = CPU_TS_Get32(); /* Get current 32-bit CPU timestamp. */

  • No labels