msg: timestamp_sample print elapsed from timestamp

This commit is contained in:
Daniel Agar
2020-05-10 15:35:18 -04:00
parent 2bbdef205e
commit c5cbc7725d
2 changed files with 6 additions and 1 deletions

View File

@@ -89,6 +89,9 @@ void print_message(const @uorb_struct &message)
PX4_INFO_RAW("Not implemented on flash constrained hardware\n");
@[else]
PX4_INFO_RAW(" @(uorb_struct)\n");
const hrt_abstime now = hrt_absolute_time();
@[for field in sorted_fields]@
@( print_field(field) )@
@[end for]@