test_clock_resolution.cpp
Go to the documentation of this file.
1 
25 #include <time.h>
26 #include <stdio.h>
27 
28 int main(int argc, char *argv[])
29 {
30  struct timespec nano_time;
31  clock_getres(CLOCK_REALTIME, &nano_time);
32  printf("clock resolution = %ld secs and %ld nsecs\n",
33  nano_time.tv_sec, nano_time.tv_nsec);
34 }
int main(int argc, char *argv[])


sr_edc_ethercat_drivers
Author(s): Ugo Cupcic, Yann Sionneau, Toni Oliver
autogenerated on Tue Oct 13 2020 04:02:02