lock_lfvx/bk_idk/components/jrtplib/tools/clockgettimetest.cpp
2025-10-10 16:07:00 +08:00

13 lines
200 B
C++
Executable File

//#include <time.h>
#include "FreeRTOS_POSIX.h"
#include "posix/time.h"
int main(void)
{
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);
clock_gettime(CLOCK_REALTIME, &tp);
return 0;
}