Please check the manual page gettimeofday(2).