1#pragma once
2
3#include <pw_types.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9[[nodiscard]] bool pw_monotonic(PwValuePtr result);
10/*
11 * Return current timestamp.
12 */
13
14[[nodiscard]] _PwValue pw_timestamp_sum(PwValuePtr a, PwValuePtr b);
15/*
16 * Calculate a + b
17 */
18
19[[nodiscard]] _PwValue pw_timestamp_diff(PwValuePtr a, PwValuePtr b);
20/*
21 * Calculate a - b
22 */
23
24[[nodiscard]] int pw_timestamp_cmp(PwValuePtr a, PwValuePtr b);
25/*
26 * Return:
27 * -1 if a < b
28 * 0 if a == b
29 * 1 if a > b
30 */
31
32#ifdef __cplusplus
33}
34#endif