From 9a358c3cdf8eb34754cc5544e2a5e0f67c022f8d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 17 Sep 2009 13:33:06 +0000 Subject: Improve sandglass_tsc_resolution(), and fix timespec-based grains counts. --- src/sandglass_impl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sandglass_impl.h') 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 #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 -- cgit v1.2.3