getclock man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

getclock(3)							   getclock(3)

NAME
       getclock - Get current value of system-wide clock

SYNOPSIS
       #include <sys/timers.h>

       int getclock(
	       int clktyp,
	       struct timespec *tp );

LIBRARY
       Standard C Library (libc)

PARAMETERS
       Identifies  a  system-wide clock.  Points to a timespec structure space
       where the current value of the system-wide clock is stored.

DESCRIPTION
       The getclock() function sets the current value of the  clock  specified
       by clktyp into the location pointed to by the tp parameter.

       The  clktyp  parameter is given as a symbolic constant name, as defined
       in the sys/timers.h include file. Only the TIMEOFDAY symbolic constant,
       which  specifies the normal time-of-day clock to access for system-wide
       time, is supported.

       For the clock specified by TIMEOFDAY, the value returned by this	 func‐
       tion  is	 the  elapsed time since the epoch. The epoch is referenced to
       00:00:00 UTC (Coordinated Universal Time) 1 Jan 1970.

       The getclock() function returns a timespec structure, which is  defined
       in the sys/timers.h header file. It has the following members:

								   getclock(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net