Home | History | Annotate | Download | only in include

Lines Matching refs:timespec

26    Timer - struct timespec conversion runtimes and easy to use functions to
38 * Converts timespec to microseconds.
40 static inline long long tst_timespec_to_us(struct timespec t)
46 * Converts timespec to miliseconds.
48 static inline long long tst_timespec_to_ms(struct timespec t)
96 * Converts ms to struct timespec
98 static inline struct timespec tst_ms_to_timespec(long long ms)
100 struct timespec ret;
109 * Converts us to struct timespec
111 static inline struct timespec tst_us_to_timespec(long long us)
113 struct timespec ret;
124 static inline int tst_timespec_lt(struct timespec t1, struct timespec t2)
135 static inline struct timespec tst_timespec_add_us(struct timespec t,
150 * Returns difference between two timespec structures.
152 static inline struct timespec tst_timespec_diff(struct timespec t1,
153 struct timespec t2)
155 struct timespec res;
169 static inline long long tst_timespec_diff_us(struct timespec t1,
170 struct timespec t2)
175 static inline long long tst_timespec_diff_ms(struct timespec t1,
176 struct timespec t2)
214 * Returns absolute value of difference between two timespec structures.
216 static inline struct timespec tst_timespec_abs_diff(struct timespec t1,
217 struct timespec t2)
225 static inline long long tst_timespec_abs_diff_us(struct timespec t1,
226 struct timespec t2)
231 static inline long long tst_timespec_abs_diff_ms(struct timespec t1,
232 struct timespec t2)
260 * Retuns elapsed time in struct timespec.
262 struct timespec tst_timer_elapsed(void);