To increase the clock resolution use do_gettimeofday() and it uses a stuct timeval which has microseconds in it.