diff --git a/tests/xtimer_usleep_until/main.c b/tests/xtimer_usleep_until/main.c index bea4f407a76aecb04cad8a0bb36fb30e7158aff2..8cf85be150cf0a44b001caa7b6adc38107a881a3 100644 --- a/tests/xtimer_usleep_until/main.c +++ b/tests/xtimer_usleep_until/main.c @@ -37,7 +37,7 @@ int main(void) uint32_t last_wakeup = xtimer_now(); uint32_t before = last_wakeup; xtimer_usleep_until(&last_wakeup, (unsigned)interval); - uint32_t diff = (last_wakeup-before)-interval; + uint32_t diff = (xtimer_now()-before)-interval; res[i] = diff; interval -= 1; }