summaryrefslogtreecommitdiff
path: root/src/include/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/timer.h')
-rw-r--r--src/include/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/timer.h b/src/include/timer.h
index d3afb19646..621b486594 100644
--- a/src/include/timer.h
+++ b/src/include/timer.h
@@ -129,7 +129,7 @@ struct stopwatch {
static inline void stopwatch_init(struct stopwatch *sw)
{
- if (IS_ENABLED(CONFIG_HAVE_MONOTONIC_TIMER))
+ if (CONFIG(HAVE_MONOTONIC_TIMER))
timer_monotonic_get(&sw->start);
else
sw->start.microseconds = 0;
@@ -153,7 +153,7 @@ static inline void stopwatch_init_msecs_expire(struct stopwatch *sw, long ms)
*/
static inline void stopwatch_tick(struct stopwatch *sw)
{
- if (IS_ENABLED(CONFIG_HAVE_MONOTONIC_TIMER))
+ if (CONFIG(HAVE_MONOTONIC_TIMER))
timer_monotonic_get(&sw->current);
else
sw->current.microseconds = 0;