Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
framework: use MONOTONIC for lockstep
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Dec 12, 2018
1 parent 11103b8 commit 4b2eb05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/src/Time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ using namespace DriverFramework;

int DriverFramework::absoluteTime(struct timespec &ts)
{
#if defined(__DF_NUTTX) || defined(__DF_APPLE)
// On NuttX we use CLOCK_REALTIME anyway.
// On macOS we can only use CLOCK_REALTIME unless we're using the lockstep
// scheduler.
#if defined(__DF_NUTTX) || (defined(__DF_APPLE) && !defined(ENABLE_LOCKSTEP_SCHEDULER))

#ifndef CLOCK_REALTIME
#define CLOCK_REALTIME 0
Expand Down

0 comments on commit 4b2eb05

Please sign in to comment.