tools:monitor:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tools:monitor:start [2020/06/26 12:57] – [Measuring a Single Block] ursgraf | tools:monitor:start [2020/08/12 09:59] – [How the Timer Works] ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
It is often desirable to determine whether realtime performance criteria are met or how long a certain time domain takes to run. For this purpose each time domain as well as the safety system comprises of a dedicated timer. | It is often desirable to determine whether realtime performance criteria are met or how long a certain time domain takes to run. For this purpose each time domain as well as the safety system comprises of a dedicated timer. | ||
===== How the Timer Works ===== | ===== How the Timer Works ===== | ||
- | The timer function | + | The timer is implemented in '' |
* run time: tock() - tick() | * run time: tock() - tick() | ||
* period: tick()[t=n] - tick()[t=n-1] | * period: tick()[t=n] - tick()[t=n-1] | ||
Line 98: | Line 98: | ||
pc.tock(); | pc.tock(); | ||
</ | </ | ||
- | You can then periodically print the mean and maximum run time. | + | You can then periodically print the mean and maximum run time. |
tools/monitor/start.txt · Last modified: 2020/08/12 10:02 by ursgraf