I needed a high resolution timer (at least having micro-second level resolution) and i found setitimer()
can be set in micro-seconds level.
struct itimerval t;
t.it_interval.tv_sec = 0;
t.it_interval.tv_usec = 2;
t.it_value.tv_sec = 0;
t.it_value.tv_usec = 3;
setitimer (ITIMER_REAL , &t, NULL);
What i needed to know is setitimer()
actual resolution in linux?