summaryrefslogtreecommitdiffstats
path: root/tests/monotonic-realticks.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-03 23:35:31 -0500
committerTavian Barnes <tavianator@gmail.com>2010-03-03 23:35:31 -0500
commit79d0dd0f54d459467dfe88fba68d4b64a461c187 (patch)
tree83c98e136ef5f23c47e5f205fbdcaa8b6d3baf62 /tests/monotonic-realticks.c
parentc497ac253504a73fbbb35788ddd8faec1163248a (diff)
downloadlibsandglass-79d0dd0f54d459467dfe88fba68d4b64a461c187.tar.xz
Make the API not suck.
Seriously, not sure what I was thinking with the attributes type.
Diffstat (limited to 'tests/monotonic-realticks.c')
-rw-r--r--tests/monotonic-realticks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/monotonic-realticks.c b/tests/monotonic-realticks.c
index 51404f5..5fff86e 100644
--- a/tests/monotonic-realticks.c
+++ b/tests/monotonic-realticks.c
@@ -30,9 +30,8 @@ int
main()
{
sandglass_t sandglass;
- sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_CPUTIME };
- if (sandglass_create(&sandglass, &attr, &attr) != 0) {
+ if (sandglass_init_monotonic(&sandglass, SANDGLASS_CPUTIME) != 0) {
perror("sandglass_create()");
return EXIT_FAILURE;
}