diff --git a/core/include/sched.h b/core/include/sched.h index 0c11db12ef..67c85fa203 100644 --- a/core/include/sched.h +++ b/core/include/sched.h @@ -179,7 +179,7 @@ NORETURN void sched_task_exit(void); * Scheduler statistics */ typedef struct { - uint64_t laststart; /**< Time stamp of the last time this thread was + uint32_t laststart; /**< Time stamp of the last time this thread was scheduled to run */ unsigned int schedules; /**< How often the thread was scheduled to run */ uint64_t runtime_ticks; /**< The total runtime of this thread in ticks */ diff --git a/core/sched.c b/core/sched.c index 59ed1f5f9f..b132a1a7e7 100644 --- a/core/sched.c +++ b/core/sched.c @@ -101,7 +101,7 @@ int __attribute__((used)) sched_run(void) } #ifdef MODULE_SCHEDSTATISTICS - uint64_t now = _xtimer_now64(); + uint32_t now = xtimer_now().ticks32; #endif if (active_thread) {