1 2 3 4 5 6 7
#include <sys/timex.h> #include <time.h> int adjtimex(struct timex *tx) { return clock_adjtime(CLOCK_REALTIME, tx); }