add -lrt for clock_gettime