From 18068cf26d34d28db8c70e26930cd842c3aecfb4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 21 Sep 2009 03:48:38 +0000 Subject: Show more accuracy in output of tests. --- tests/monotonic-realticks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/monotonic-realticks.c') diff --git a/tests/monotonic-realticks.c b/tests/monotonic-realticks.c index eb9e9f6..9b5daff 100644 --- a/tests/monotonic-realticks.c +++ b/tests/monotonic-realticks.c @@ -24,20 +24,20 @@ #include #include #include +#include int main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_REALTICKS }; - unsigned int i = 0; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); return EXIT_FAILURE; } - sandglass_bench(&sandglass, ++i); + sandglass_bench(&sandglass, sandglass_get_tsc()); printf("%ld\n", sandglass.grains); -- cgit v1.2.3