platforms/nuttx/src/px4/nxp/kinetis/hrt/hrt.c
hrt_abstime
hrt_elapsed_time_atomic(const volatile hrt_abstime *then)
{
	irqstate_t flags = px4_enter_critical_section();

	hrt_abstime delta = hrt_absolute_time() - *then;

	px4_leave_critical_section(flags);

	return delta;
}
/**
 * Compare a time value with the current time as atomic operation.
 */
Compare a time value with the current time as atomic operation.
Compare a time value with the current time as atomic operation .
hrt_abstime
hrt_elapsed_time_atomic(const volatile hrt_abstime *then)
{
	irqstate_t flags = px4_enter_critical_section();
	hrt_abstime delta = hrt_absolute_time() - *then;
	px4_leave_critical_section(flags);
	return delta;
}
hrt_abstime hrt_elapsed_time_atomic ( const volatile hrt_abstime * then ) { irqstate_t flags = px4_enter_critical_section ( ) ; hrt_abstime delta = hrt_absolute_time ( ) - * then ; px4_leave_critical_section ( flags ) ; return delta ; }
Compare a time value with the current time as atomic operation.
Compare a time value with the current time as atomic operation .