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 }