Changed Gettimeofday with Clock_Gettime