summaryrefslogtreecommitdiffstats
path: root/src/sandglass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandglass.c')
-rw-r--r--src/sandglass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sandglass.c b/src/sandglass.c
index 7ffe511..0710788 100644
--- a/src/sandglass.c
+++ b/src/sandglass.c
@@ -58,7 +58,7 @@ sandglass_init_monotonic(sandglass_t *sandglass, sandglass_resolution_t res)
{
switch (res) {
case SANDGLASS_CPUTIME:
-#ifdef SANDGLASS_TSC
+#if SANDGLASS_TSC
sandglass->freq = sandglass_tsc_freq();
sandglass->loops = sandglass_tsc_loops();
break;
@@ -120,7 +120,7 @@ sandglass_real_gettime(sandglass_t *sandglass)
case SANDGLASS_MONOTONIC:
switch (sandglass->resolution) {
case SANDGLASS_CPUTIME:
-#ifdef SANDGLASS_TSC
+#if SANDGLASS_TSC
sandglass->grains = sandglass_get_tsc();
break;
#else