From 79d0dd0f54d459467dfe88fba68d4b64a461c187 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 3 Mar 2010 23:35:31 -0500 Subject: Make the API not suck. Seriously, not sure what I was thinking with the attributes type. --- tests/noprecache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/noprecache.c') diff --git a/tests/noprecache.c b/tests/noprecache.c index 071920d..e48929d 100644 --- a/tests/noprecache.c +++ b/tests/noprecache.c @@ -31,10 +31,9 @@ main() { int i = 0; sandglass_t sandglass; - sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_CPUTIME }; struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; - if (sandglass_create(&sandglass, &attr, &attr) != 0) { + if (sandglass_init_monotonic(&sandglass, SANDGLASS_SYSTEM) != 0) { perror("sandglass_create()"); return EXIT_FAILURE; } @@ -49,7 +48,7 @@ main() "sandglass_bench_noprecache() evaluated routine %d times!\n", i); } - printf("%.15g\n", sandglass.grains/sandglass.resolution); + printf("%.15g\n", sandglass.grains/sandglass.freq); return EXIT_SUCCESS; } -- cgit v1.2.3