| 293 | |
| 294 | #if DEBUG_FFT |
| 295 | void DSP::StepTimer::time(uint32_t start) |
| 296 | { |
| 297 | _timer_total += (AP_HAL::micros() - start); |
| 298 | _time_ticks = (_time_ticks + 1) % TICK_CYCLE; |
| 299 | if (_time_ticks == 0) { |
| 300 | _timer_avg = _timer_total / TICK_CYCLE; |
| 301 | _timer_total = 0; |
| 302 | } |
| 303 | } |
| 304 | #endif |
| 305 | |
| 306 | #endif |