Profiling Results - WPISmartmouse/Smartmouse_2018 GitHub Wiki
Key | Average time (micros) |
---|---|
Schedule | 31.571 |
Sensors | 79.741 |
KC | 186.953 |
Motors | 7.012 |
Total Time: †305.277 us
This means we could run at $\frac{1,000,000}{305.277} = 3275.7\text{Hz}$, or 3.275kHz?!?! But we're only running at 100Hz. Our code is waiting/blocking and could be running way faster.
†This is just the some of these measured times, which does not include a small amount of other code. There could be another ~10us of total loop time.