diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-09-18 19:47:51 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-09-18 19:47:51 +0000 |
commit | e2fa7956b87c23a8229926f39a3863ecd4d4752a (patch) | |
tree | 89008fd214693cf8b5df22b9b492fcd3f394e0cb /src/sandglass_impl.h | |
parent | 25052f0997c75f91846511041cf4eeb20959ae96 (diff) | |
download | libsandglass-e2fa7956b87c23a8229926f39a3863ecd4d4752a.tar.xz |
Add timespec helper routines.
Diffstat (limited to 'src/sandglass_impl.h')
-rw-r--r-- | src/sandglass_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |