mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
hrt: remove hrt_elapsed_time_atomic
There's no protection on posix
This commit is contained in:
1 parent
6f902e54f9
commit
e73172b537
9 files changed
+3
-87
No files matched your search
@@ -83,7 +83,7 @@ int uORBTest::UnitTest::pubsublatency_main()
|
||||
if (fds[0].revents & POLLIN) {
|
||||
orb_copy(ORB_ID(orb_test_medium), test_multi_sub, &t);
|
||||
|
||||
unsigned elt = (unsigned)hrt_elapsed_time_atomic(&t.timestamp);
|
||||
unsigned elt = (unsigned)hrt_elapsed_time(&t.timestamp);
|
||||
latency_integral += elt;
|
||||
timings[i] = elt;
|
||||
|
||||
|
||||
Reference in new issue
Block a user