Files
PX4-Autopilot/platforms
Jacob Dahl c092f80f38 refactor(drv_hrt): out-line hrt_elapsed_time to save flash (#28443)
hrt_elapsed_time() was a static inline expanding to ~15 bytes at each
of its ~450 call sites (call to hrt_absolute_time plus 64-bit compare
and subtract). Move the definition into px4_platform so each call site
is a single branch. px4iofirmware does not link px4_platform, so it
compiles the new source directly.

Saves 3592 bytes of flash on px4_fmu-v6x_default.

Co-authored-by: Balduin <balduin@auterion.com>
2026-08-28 18:40:25 -06:00
..