clock(3X)
NAME
clock() − return the MPE clock value
SYNOPSIS
#include <portnls.h>
unsigned int clock(void);
DESCRIPTION
This routine returns the clock value in the MPE format.
RETURN VALUE
clock() returns an unsigned int in the format:
| Bits | 0 | 7 | 8 | 15 |
| _ | _ | _ | _ | |
| Hour of Day | Minute of Hour | |||
| _ | _ | _ | _ | |
| Bits | 16 | 23 | 24 | 31 |
| _ | _ | _ | _ | |
| Seconds | Tenths of Seconds | |||
| _ | _ | _ | _ | |
WARNINGS
This routine is provided for compatibility with the HP MPE operating system. See portnls(5) for more information on the use of this routine. Use the Native Language Support routines for C programmers described in hpnls(5) for HP-UX NLS support.
AUTHOR
clock() was developed by HP.
SEE ALSO
nlconvclock(3X), nlfmtclock(3X), portnls(5).
Hewlett-Packard Company — HP-UX Release 9.0: August 1992