Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » timeNowNS, timeNowInt64

timeNowNS, timeNowInt64

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

float TimeNowNS();
int64 timeNowInt64();

Description

Supplies the current simulation time. The simulation time can be correlated with the hardware results of the network interface. The resolution of this time is dependent upon the hardware used (usually a millisecond or better). Depending on the hardware configuration, the simulation time
  • will be the same as the message time calculated by the network interface.
or
  • the message times will have a higher accuracy

Parameters

Return Values

Simulation time in nanoseconds.

Example

EnvVarTimeNSMessageTimeNStimeNowFloat