Skip to main content
Open topic with navigation

sysGetVariableTimeNS

CAPL Functions » System Variables » sysGetVariableTimeNS Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

int64 sysGetVariableTimeNS(SysVarName);

Description

Returns the time stamp of the last update to the variable value. Note: Direct access to values from system variables.

Parameters

  • SysVarName: Name of the fully qualified name of the system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysVar::”.

Return Values

Time stamp of the last update to the variable value, in nanoseconds since measurement start.

Example

int64 timeStamp;
timeStamp = sysGetVariableTimeNS(sysvar::MyNamespace::FloatVar);