diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-09-17 13:33:06 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-09-17 13:33:06 +0000 |
commit | 9a358c3cdf8eb34754cc5544e2a5e0f67c022f8d (patch) | |
tree | a351b5a08f614e3ceeb7f63c7cf68f68377e54c5 /src/sandglass_impl.h | |
parent | a9f27bf33c6b6b6e9aac0eb1e69743120a11daa1 (diff) | |
download | libsandglass-9a358c3cdf8eb34754cc5544e2a5e0f67c022f8d.tar.xz |
Improve sandglass_tsc_resolution(), and fix timespec-based grains counts.
Diffstat (limited to 'src/sandglass_impl.h')
-rw-r--r-- | src/sandglass_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sandglass_impl.h b/src/sandglass_impl.h index 5a3650e..b618a93 100644 --- a/src/sandglass_impl.h +++ b/src/sandglass_impl.h @@ -26,6 +26,7 @@ #define SANDGLASS_IMPL_H_INCLUDED #include "sandglass.h" +#include <time.h> #ifdef SANDGLASS_TSC /* Read the time stamp counter */ @@ -36,4 +37,6 @@ double sandglass_tsc_resolution(); unsigned int sandglass_tsc_loops(); #endif +long sandglass_timespec_grains(const struct timespec *ts); + #endif /* SANDGLASS_IMPL_H_INCLUDED */
\ No newline at end of file |