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>