Link with -lrt (clock_gettime)