platforms: use CLOCK_MONOTONIC

For the non-lockstep case we want to use CLOCK_MONOTONIC if possible.
This commit is contained in:
Julian Oes
2018-12-09 12:39:06 +01:00
parent d94748c831
commit 06c5037025
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -379,7 +379,8 @@ extern "C" {
// Get the current time
struct timespec ts;
// px4_sem_timedwait is implemented using CLOCK_MONOTONIC.
// px4_sem_timedwait is implemented using CLOCK_MONOTONIC,
// at least for lockstep, on Qurt and on Linux.
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
// Calculate an absolute time in the future