I want the code or function which gives the current system accurate to microseconds.

I tried of using gettimeofday but it is returning seconds and microseconds.

can anyone help out in this...