xtimer
is the high level API of RIOT to multiplex hardware timers.
For this task we need only the following functions
- `xtimer_now_usec()` to get current system time in microseconds
- `xtimer_sleep(sec)` to sleep `sec` seconds
- `xtimer_usleep(usec)` to sleep `usec` microseconds
- Note the inclusion of
xtimer
in the Makefile
USEMODULE += xtimer
- Create a thread in
main.c
that prints the current system time every 2 seconds - Check the existence of the thread with
ps
shell command