The RuntimeMeasurement class provides a set of methods for precise measurement of elapsed time, utilizing the PLC's performance counter as the most accurate means of measurement.
If a call to GetElapsed, GetElapsedNanoseconds, GetElapsedSeconds or Stop returns a negative value, the measurement is invalid.
Following a Start method call and prior to the corresponding Stop method call, the GetElapsed methods will return 0: