Replace sleep with px4_sleep

This is another step to isolate time from the system.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent 3f695870a4
commit d70b0f1c8c
13 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ top_main(int argc, char *argv[])
if (argc > 1) {
if (!strcmp(argv[1], "once")) {
print_load(curr_time, 1, &load);
sleep(1);
px4_sleep(1);
print_load(hrt_absolute_time(), 1, &load);
} else {