packageTime
Time related functions.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | RT_CLOCK_SIMULATE_TOTAL | 8 | |
| Integer | RT_CLOCK_SIMULATE_SIMULATION | 9 | |
| Integer | RT_CLOCK_BUILD_MODEL | 10 | |
| Integer | RT_CLOCK_EXECSTAT_MAIN | 11 | |
| Integer | RT_CLOCK_EXECSTAT_BACKEND_MODULES | 12 | |
| Integer | RT_CLOCK_FRONTEND | 13 | |
| Integer | RT_CLOCK_BACKEND | 14 | |
| Integer | RT_CLOCK_SIMCODE | 15 | |
| Integer | RT_CLOCK_LINEARIZE | 16 | |
| Integer | RT_CLOCK_TEMPLATES | 17 | |
| Integer | RT_CLOCK_UNCERTAINTIES | 18 | |
| Integer | RT_CLOCK_USER_RESERVED | 19 | |
| Integer | RT_CLOCK_FMU_BACKEND | 27 | |
| Integer | RT_CLOCK_FMU_SIMCODE | 28 | |
| Integer | RT_CLOCK_FMU_TEMPLATES | 31 |
Contents
| Name | Description |
|---|---|
| readableTime | Returns the time in seconds formatted as a string with four significant digits. |
| timerTick | Starts the internal timer with the given index. |
| timerTock | Reads the internal timer with the given index. |
| timerAccumulated | Reads 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. |
| timerClear | Clears the internal timer with the given index. |