diff --git a/tests/pthread_barrier/Makefile b/tests/pthread_barrier/Makefile index 4b7ea7e637..815e331efa 100644 --- a/tests/pthread_barrier/Makefile +++ b/tests/pthread_barrier/Makefile @@ -11,6 +11,6 @@ BOARD_INSUFFICIENT_MEMORY := stm32f0discovery # Modules to include. USEMODULE += pthread USEMODULE += random -USEMODULE += vtimer +USEMODULE += xtimer include $(RIOTBASE)/Makefile.include diff --git a/tests/pthread_barrier/main.c b/tests/pthread_barrier/main.c index fcb44ae6d9..f8c06e0697 100644 --- a/tests/pthread_barrier/main.c +++ b/tests/pthread_barrier/main.c @@ -23,7 +23,7 @@ #include "pthread.h" #include "random.h" -#include "vtimer.h" +#include "xtimer.h" #define NUM_CHILDREN 4 #define NUM_ITERATIONS 5 @@ -45,7 +45,7 @@ static void *run(void *id_) uint32_t timeout_us = genrand_uint32() % 2500000; printf("Child %i sleeps for %8" PRIu32 " µs.\n", id, timeout_us); - vtimer_usleep(timeout_us); + xtimer_usleep(timeout_us); } printf("Done %i\n", id);