Should have used clock_gettime.