Add include <time.h> for CLOCK_MONOTONIC