diff options
author | 2019-06-19 11:58:03 +0300 | |
---|---|---|
committer | 2019-06-19 11:58:03 +0300 | |
commit | c499fc7bc9e1c3b8fe04ea5c80e5a7e0b16b11fc (patch) | |
tree | 5ec5eaeb3eb951f65715aa62a043c6ae7eac7854 /include/rin/time.h | |
parent | ef5cc380045bba05acfcba7d0e1c03046fdc82d0 (diff) | |
download | librin-c499fc7bc9e1c3b8fe04ea5c80e5a7e0b16b11fc.tar.gz librin-c499fc7bc9e1c3b8fe04ea5c80e5a7e0b16b11fc.tar.bz2 librin-c499fc7bc9e1c3b8fe04ea5c80e5a7e0b16b11fc.zip |
time: add a generalized time comparison function.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'include/rin/time.h')
-rw-r--r-- | include/rin/time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rin/time.h b/include/rin/time.h index aa9bc66..523103f 100644 --- a/include/rin/time.h +++ b/include/rin/time.h @@ -26,6 +26,7 @@ struct timespec rin_time_add(const struct timespec * const a, const struct timespec * const b); struct timespec rin_time_sub(const struct timespec * const a, const struct timespec * const b); struct timespec rin_time_normalize(const struct timespec * const t); +long int rin_time_cmp(const struct timespec * const a, const struct timespec * const b); unsigned int rin_time_cmp_less(const struct timespec * const a, const struct timespec * const b); unsigned int rin_time_cmp_more(const struct timespec * const a, const struct timespec * const b); unsigned int rin_time_cmp_lessequal(const struct timespec * const a, const struct timespec * const b); |