/* * Copyright (C) 2020 SSV Software Systems GmbH * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup tests * @{ * * @file * @brief ztimer test application * * @author Juergen Fitschen * * @} */ #include #include "ztimer.h" #ifndef TEST_ZTIMER_CLOCK #error Please define TEST_ZTIMER_CLOCK #endif #define LOOPS (1000U) #define xstr(s) str(s) #define str(s) #s int main(void) { printf("Looping over ztimer clock %s\n", xstr(TEST_ZTIMER_CLOCK)); for (unsigned i = 0; i < LOOPS; i++) { printf("Loop %u\n", i); ztimer_sleep(TEST_ZTIMER_CLOCK, 0); } printf("SUCCESS!\n"); return 0; }