drv_hrt: inline hrt_elapsed_time

GCC did not do that.
This commit is contained in:
Beat Küng
2019-01-25 07:53:37 +01:00
parent 2ffb49b734
commit 74a3c378b2
5 changed files with 4 additions and 47 deletions
-11
View File
@@ -715,17 +715,6 @@ abstime_to_ts(struct timespec *ts, hrt_abstime abstime)
ts->tv_nsec = abstime * 1000;
}
/**
* Compare a time value with the current time.
*/
hrt_abstime
hrt_elapsed_time(const hrt_abstime *then)
{
hrt_abstime delta = hrt_absolute_time() - *then;
return delta;
}
/**
* Compare a time value with the current time as atomic operation
*/