xtimer is the high level API of RIOT to multiplex hardware timers.
For this task we need only the following functions
- `xtimer_now()` 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
xtimerin the Makefile
USEMODULE += xtimer- Create a thread in
main.cthat prints the current system time every 2 seconds - Check the existence of the thread with
psshell command