Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GetSteadyClockStartDurationNS
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE
Function Syntax
int64 GetSteadyClockStartDurationNS();
Description
Returns the duration of the measurement start in nanoseconds. The duration returned is the one needed for all on start handlers of simulation nodes and similar functions. It does not include the time needed e.g. for on preStart handlers, for compilation of CAPL programs, initialization of hardware etc.
You can use the function mainly for detecting whether the measurement start takes too much time, maybe because of an inefficient on start handler.
Parameters
—
Return Values
Measurement start time of a steady clock in nanoseconds.
The function returns 0 if called in the on start or on preStart handler.
Example
Write("Measurement start took %I64d nanoseconds", GetSteadyClockStartDurationNS());
GetSteadyClockStartTimeNS • GetSteadyClockCurrentTimeNS • GetMeasurementStartTime