## NAME

clock_init - initializes processor specific clock.

## SYNOPSIS

#include <sys.h>

int clock_init( clockid_t clockid,
  const struct timespec *res );

## DESCRIPTION

The clock_init() function sets the clock resolution. This works on all processors.

The clockid argument is optional.

## RETURN VALUES

clock_init returns 0 upon success, otherwise it returns -1 and sets errno.

## ERRORS

EINVAL
  res->tv_sec value is non-zero or the res->tv_nsec value is greater than or equal to 1 second or CLOCK_REALTIME was not specified.

## SEE ALSO

hw_init()

#### Home page (Kernel)

## < Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2018 >