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): Yann Sionneau, Ugo Cupcic / ugo@shadowrobot.com, software@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:38:25