test_clock_resolution.cpp
Go to the documentation of this file.
00001 
00026 #include <time.h>
00027 #include <stdio.h>
00028 
00029 int main(int argc, char *argv[])
00030 {
00031   struct timespec nano_time;
00032   clock_getres(CLOCK_REALTIME, &nano_time);
00033   printf("clock resolution = %ld secs and %ld nsecs\n",
00034          nano_time.tv_sec, nano_time.tv_nsec);
00035 }


sr_edc_ethercat_drivers
Author(s): Ugo Cupcic, Yann Sionneau, Toni Oliver
autogenerated on Mon Jul 1 2019 20:06:31