|
@@ -11,8 +11,6 @@
|
|
|
|
|
|
#include <faux/faux.h>
|
|
#include <faux/faux.h>
|
|
|
|
|
|
-#define FAUX_CLOCK_SOURCE CLOCK_MONOTONIC
|
|
|
|
-
|
|
|
|
C_DECL_BEGIN
|
|
C_DECL_BEGIN
|
|
|
|
|
|
// Operations for struct timespec
|
|
// Operations for struct timespec
|
|
@@ -22,6 +20,7 @@ int faux_timespec_diff(struct timespec *res,
|
|
int faux_timespec_sum(struct timespec *res,
|
|
int faux_timespec_sum(struct timespec *res,
|
|
const struct timespec *val1, const struct timespec *val2);
|
|
const struct timespec *val1, const struct timespec *val2);
|
|
int faux_timespec_now(struct timespec *now);
|
|
int faux_timespec_now(struct timespec *now);
|
|
|
|
+int faux_timespec_now_monotonic(struct timespec *now);
|
|
bool_t faux_timespec_before_now(const struct timespec *ts);
|
|
bool_t faux_timespec_before_now(const struct timespec *ts);
|
|
|
|
|
|
// Convertions of struct timespec
|
|
// Convertions of struct timespec
|