From e2fa7956b87c23a8229926f39a3863ecd4d4752a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 18 Sep 2009 19:47:51 +0000 Subject: Add timespec helper routines. --- src/sandglass_impl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sandglass_impl.h') diff --git a/src/sandglass_impl.h b/src/sandglass_impl.h index cea95c3..07a3616 100644 --- a/src/sandglass_impl.h +++ b/src/sandglass_impl.h @@ -37,4 +37,10 @@ double sandglass_tsc_resolution(); unsigned int sandglass_tsc_loops(); #endif +void sandglass_get_currtime(struct timespec *ts); +void sandglass_timespec_add(struct timespec *ts, const struct timespec *d); +void sandglass_timespec_sub(struct timespec *ts, const struct timespec *d); +int sandglass_timespec_cmp(const struct timespec *a, const struct timespec *b); +void sandglass_spin(struct timespec *ts); + #endif /* SANDGLASS_IMPL_H_INCLUDED */ \ No newline at end of file -- cgit v1.2.3