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 }