pthread_condattr_setclock() returns zero after completing successfully. Any other return value indicates that an error occurred. When the following condition occurs, the function fails and returns the corresponding value.
EINVAL
Description:The value specified by clock_id does not refer to a known clock, or is a CPU-time clock.