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?
Lower, actually, but how low is not specified. The manpage states:
If you require microsecond-level resolution and precision, you are in the real-time domain.