add -lrt to link with clock_gettime