/* Get clock time specified by clock_id. 
See IEEE 1003.1  */
int z_impl___posix_clock_get_base(clockid_t clock_id, struct timespec *base)
/* Get clock time specified by clock_id. 
See IEEE 1003.1  */
int z_impl___posix_clock_get_base(clockid_t clock_id, struct timespec *base)
{
	switch (clock_id) {
	case CLOCK_MONOTONIC:
		base->tv_sec = 0;
		base->tv_nsec = 0;
		break;
	case CLOCK_REALTIME:
		K_SPINLOCK(&rt_clock_base_lock) {
			*base = rt_clock_base;
		}
		break;
	default:
		errno = EINVAL;
		return -1;
	}
	return 0;
}