mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 09:03:34 +08:00
Replacing usleep with px4_usleep
This is a step towards isolating time from the system.
This commit is contained in:
@@ -108,7 +108,7 @@ task_main(int argc, char *argv[])
|
||||
PX4_INFO("task %d: %.0f%%", my_id, (double)i * 100.0f / NUM_MISSIONS_TEST);
|
||||
}
|
||||
|
||||
usleep(rand() & ((64 * 1024) - 1));
|
||||
px4_usleep(rand() & ((64 * 1024) - 1));
|
||||
}
|
||||
|
||||
hrt_abstime rstart = hrt_absolute_time();
|
||||
|
||||
Reference in New Issue
Block a user