TimeNowNS
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Syntax
float TimeNowNS();
int64 timeNowInt64();
Function
Supplies the current simulation time.
The simulation time can be correlated with the hardware results of the interface cards (e.g. CANcardXL).
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 interface cards
(e.g., system with two CAN channels connected to one CANcardXL)
or
- the message times will have a higher accuracy
Parameters
—
Return Values
Simulation time in nanoseconds.
—
Related APIs
EnvVarTimeNS | MessageTimeNS | timeNowFloat
Source detail restored from the authorized CANoe 12 help. Hardware support and API availability must be checked against the installed product version.