Link with -lrt for clock_gettime