Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Gets current 32-bit CPU timestamp.anchor10523231052323

Files

Anchor10523241052324cpu_core.h/cpu_core.c Anchor10523291052329

Prototype

...

Code Block

...

CPU_TS32
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
Anchor
10523281052328
language

...

cpp
          CPU_TS32  CPU_TS_Get32 (void);

...


...

Arguments

Anchor10524261052426None. Anchor10523351052335

Returned Value

Anchor10523361052336None. Anchor10523371052337

Required Configuration

...

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

Notes / Warnings

...

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

Anchor10607401060740Time measured = Number timer counts * Timer period Anchor10607541060754  

...

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


Anchor10545671054567Time measured = Number timer counts / Timer frequency Anchor10545681054568  

...

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

...

Anchor
10606161060616
 

...

Listing - CPU_TS_Get32() example usage
Listing - CPU_TS_Get32() example usage

Code Block
languagecpp
titleListing - CPU_TS_Get32() example usage
linenumberstrue
          CPU_TS32  ts32;
           
          ts32 = CPU_TS_Get32();  /* Get current 32-bit CPU timestamp. */