Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » timeNowFloat

timeNowFloat

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

Function Syntax

float timeNowFloat();

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 10 microseconds.

Example

...
float x;
x = timeNowFloat()/100000.0; //current time in seconds
...
timeDifftimeNowtimeNowNStimeNowInt64