test_clock_resolution.cpp
Go to the documentation of this file.
00001 #include <time.h>
00002 #include <stdio.h>
00003 
00004 int main(int argc, char *argv[])
00005 {
00006     struct timespec nano_time;
00007     clock_getres(CLOCK_REALTIME, &nano_time);
00008     printf("clock resolution = %ld secs and %ld nsecs\n",
00009            nano_time.tv_sec, nano_time.tv_nsec);
00010 }


sr_edc_ethercat_drivers
Author(s): Ugo Cupcic, Yann Sionneau, Toni Oliver
autogenerated on Thu Aug 27 2015 15:16:54