tools:monitor:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tools:monitor:start [2020/06/26 12:54] – [Save terminal output on a host computer via SSH] ursgraf | tools:monitor:start [2020/06/26 12:56] – [Measuring a Single Block] ursgraf | ||
---|---|---|---|
Line 91: | Line 91: | ||
===== Measuring a Single Block ===== | ===== Measuring a Single Block ===== | ||
- | Especially when implementing your own blocks one wishes to measure the time it takes to run it. This can be very useful for blocks with complex algorithms or in cases your timedomain with many blocks takes to much time to run and you want to pinpoint the culprit. For this purpose add a '' | + | Especially when implementing your own blocks one wishes to measure the time it takes to run it. This can be very useful for blocks with complex algorithms or in cases your timedomain with many blocks takes to much time to run and you want to pinpoint the culprit. For this purpose add a '' |
+ | <code cpp> | ||
+ | virtual void run() { | ||
+ | pc.tick(); | ||
+ | ... // algorithm | ||
+ | pc.tock(); | ||
+ | </ | ||
+ | You can then print the |
tools/monitor/start.txt · Last modified: 2020/08/12 10:02 by ursgraf