*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> clock_getres (3)              



NAME    [Toc]    [Back]

       clock_getres - Gets the resolution for the specified clock

SYNOPSIS    [Toc]    [Back]

       #include <time.h> int clock_getres (  clockid_t  clock_id,
       struct timespec *res);

LIBRARY    [Toc]    [Back]

       Realtime Library (librt.so, librt.a)

PARAMETERS    [Toc]    [Back]

       The   clock  type  used  to  obtain  the  resolution.  The
       CLOCK_REALTIME clock is supported and represents the TIMEOF-DAY
  clock  for  the system.  A pointer to the timespec
       data structure that receives the value of the clock's resolution.

DESCRIPTION    [Toc]    [Back]

       The clock_getres function returns the resolution value for
       the specified clock. If the  res  argument  is  NULL,  the
       clock resolution is not returned.

RETURN VALUES    [Toc]    [Back]

       On a successful call, a value of 0 (zero) is returned.

       On  an  unsuccessful  call,  a value of -1 is returned and
       errno is set to indicate that an error occurred.

ERRORS    [Toc]    [Back]

       The clock_getres function fails under the following condition:
  The  clock_id  argument  does  not  specify a known

SEE ALSO    [Toc]    [Back]

       Functions: time(1), ctime(3), timer_settime(3)

       Guide to Realtime Programming

[ Back ]
 Similar pages
Name OS Title
clock_gettime Tru64 Obtains or sets the time for the specified clock (P1003.1b)
clock_settime Tru64 Obtains or sets the time for the specified clock (P1003.1b)
hostname IRIX hostname resolution description
nanosleep OpenBSD high resolution sleep
hostname HP-UX host name resolution description
nanosleep NetBSD high resolution sleep
arp IRIX Address Resolution Protocol
arp Tru64 Address Resolution Protocol
arp OpenBSD Address Resolution Protocol
hostname FreeBSD host name resolution description
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service