diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-16 04:49:23 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-16 04:49:23 -0500 |
commit | 93f417fbf3aa358ffff40530b6cf5d2446dcd8b7 (patch) | |
tree | d8bb609cb9c7bec4a0c7f766a0419460aedbd123 /include | |
parent | 5184b9f57b7342229d72ff0784a0c21d653a2067 (diff) |
Add monotime() wrapper for CLOCK_MONOTONIC
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); | |||
330 | */ | 330 | */ |
331 | double wctime(void); | 331 | double wctime(void); |
332 | 332 | ||
333 | /** | ||
334 | * Obtain CLOCK_MONOTONIC time | ||
335 | * @return CLOCK_MONOTONIC time in seconds | ||
336 | */ | ||
337 | double monotime(void); | ||
338 | |||
333 | /***** semaphore allocation ******/ | 339 | /***** semaphore allocation ******/ |
334 | /** | 340 | /** |
335 | * Allocate a semaphore following the FMLP protocol | 341 | * Allocate a semaphore following the FMLP protocol |