From 93f417fbf3aa358ffff40530b6cf5d2446dcd8b7 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 16 Dec 2015 10:49:23 +0100 Subject: Add monotime() wrapper for CLOCK_MONOTONIC --- include/litmus.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/litmus.h b/include/litmus.h index 72f1ad4..2c5d4df 100644 --- a/include/litmus.h +++ b/include/litmus.h @@ -330,6 +330,12 @@ double cputime(void); */ double wctime(void); +/** + * Obtain CLOCK_MONOTONIC time + * @return CLOCK_MONOTONIC time in seconds + */ +double monotime(void); + /***** semaphore allocation ******/ /** * Allocate a semaphore following the FMLP protocol -- cgit v1.2.2