clock_id The clock type used for the clock that is to be set. The CLOCK_ REALTIME clock is supported and represents the TIME-OF-DAY clock for the system. tp A pointer to a timespec data structure.