RuntimeMeasurement - Manual - SIMATIC AX - System and Runtime clock functionality - Siemens.Simatic.Clocks,library

Siemens.Simatic.Clocks library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
11.0.14
Edition
10/2025
Language
English (original)
Package Name
@ax/simatic-clocks

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:

Start Stop Elapsed 0 t