packageTime

Time related functions.

Parameters

TypeNameDefaultDescription
IntegerRT_CLOCK_SIMULATE_TOTAL8
IntegerRT_CLOCK_SIMULATE_SIMULATION9
IntegerRT_CLOCK_BUILD_MODEL10
IntegerRT_CLOCK_EXECSTAT_MAIN11
IntegerRT_CLOCK_EXECSTAT_BACKEND_MODULES12
IntegerRT_CLOCK_FRONTEND13
IntegerRT_CLOCK_BACKEND14
IntegerRT_CLOCK_SIMCODE15
IntegerRT_CLOCK_LINEARIZE16
IntegerRT_CLOCK_TEMPLATES17
IntegerRT_CLOCK_UNCERTAINTIES18
IntegerRT_CLOCK_USER_RESERVED19
IntegerRT_CLOCK_FMU_BACKEND27
IntegerRT_CLOCK_FMU_SIMCODE28
IntegerRT_CLOCK_FMU_TEMPLATES31

Contents

NameDescription
readableTimeReturns the time in seconds formatted as a string with four significant digits.
timerTickStarts the internal timer with the given index.
timerTockReads the internal timer with the given index.
timerAccumulatedReads the total time accumulated on the internal timer with the given index, or -1 if that timer never ran. Timers that measure a stretch of work that recurs during one command accumulate instead of ticking once.
timerClearClears the internal timer with the given index.