mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 15:20:34 +08:00
Replacing usleep with px4_usleep
This is a step towards isolating time from the system.
This commit is contained in:
@@ -65,7 +65,7 @@ void unlock()
|
||||
}
|
||||
|
||||
#define PERF(name, op, count) do { \
|
||||
usleep(1000); \
|
||||
px4_usleep(1000); \
|
||||
reset(); \
|
||||
perf_counter_t p = perf_alloc(PC_ELAPSED, name); \
|
||||
for (int i = 0; i < count; i++) { \
|
||||
|
||||
Reference in New Issue
Block a user