MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / time

Method time

libraries/AP_HAL_ChibiOS/DSP.cpp:295–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

isb_parserFunction · 0.80
msposd.pyFile · 0.80
receive_dataFunction · 0.80
runFunction · 0.80
armMethod · 0.80
disarmMethod · 0.80
receiveIMUMethod · 0.80
walking_robot.pyFile · 0.80
robot.pyFile · 0.80
__init__Method · 0.80
progressMethod · 0.80

Calls 1

microsFunction · 0.70

Tested by 15

__init__Method · 0.64
progressMethod · 0.64
reboot_sitl_mavMethod · 0.64
set_streamrateMethod · 0.64
do_heartbeatsMethod · 0.64
processMethod · 0.64
write_msg_to_tlogMethod · 0.64
drain_mav_unparsedMethod · 0.64