Skip to content

Commit

Permalink
Select clock source depending on platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
timrulebosch committed Jan 11, 2024
1 parent 4ee8ef9 commit d8d0bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export DSE_SCHEMA_URL ?= $(DSE_SCHEMA_REPO)/releases/download/v$(DSE_SCHEMA_VERS
###############
## DSE C Library.
DSE_CLIB_REPO ?= https://github.com/boschglobal/dse.clib
DSE_CLIB_VERSION ?= 1.0.6
DSE_CLIB_VERSION ?= 1.0.7
export DSE_CLIB_URL ?= $(DSE_CLIB_REPO)/archive/refs/tags/v$(DSE_CLIB_VERSION).zip


Expand Down
3 changes: 2 additions & 1 deletion dse/modelc/adapter/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

#include <time.h>
#include <stdint.h>
#include <dse/platform.h>


inline struct timespec get_timespec_now(void)
{
struct timespec ts = {};
clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
clock_gettime(CLOCK_SOURCE, &ts);
return ts;
}

Expand Down

0 comments on commit d8d0bae

Please sign in to comment.