TS – Current timestamp

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio stub ts TS

Function Description
The TS block generates a time stamp on the output ts from a source specified by the source parameter. The stub input is used only to ensure the correct execution order of the block in the program.

The source parameter can be used to switch between several different time sources:

  • CORETIMER - is the primary time stamp used in the REXYGEN system, expressing the number of nanoseconds since January 1, 2000.
  • CORETIMER (precise) - operates similarly to CORETIMER, but the time stamp is updated at the moment the block is executed, using a different source, usually RTC or PFC.
  • RTC (UTC) - returns the time stamp in Coordinated Universal Time format.
  • RTC (localtime) - returns the time stamp in local time format (considering time zones).
  • PFC - is based on the QueryPerformanceCounter function on Windows systems and returns the system time stamp with a resolution of 1 ns.
  • TSC - is the fastest time stamp source, using the RDTSC instruction on x86 processors and the CNTVCT_EL0 instruction on ARM64 processors. On other platforms, the TSC time stamp is identical to the PFC time stamp.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

stub

Dummy input for block ordering

Any

Parameter

source

Source of the time stamp  1

Word (U16)

1 ....

CORETIMER

2 ....

CORETIMER (precise)

3 ....

RTC (UTC)

4 ....

RTC (localtime)

5 ....

PFC

6 ....

TSC

Output

ts

Time stamp

Large (I64)

2024 © REX Controls s.r.o., www.rexygen.com