MSOP_TIME(D2psm)
MSOP_TIME: MSOP_TIME_GET, MSOP_TIME_ADD, MSOP_TIME_SUB MSOP_TIME_CVT, MSOP_TIME_SPIN --
high resolution time operations
Synopsis
void pfxtime_get(ms_rawtime_t *rawtime)
void pfxtime_add(ms_rawtime_t *dst, ms_rawtime_t *src)
void pfxtime_sub(ms_rawtime_t *dst, ms_rawtime_t *src)
void pfxtime_cvt(ms_time_t *time, ms_rawtime_t *src)
void pfxtime_spin(unsigned int spin_time)
Description
MSOP_TIME_GET gets the value of a free-running high-resolution
clock counter in PSM-specific units. This counter should not wrap
around in less than an hour.
MSOP_TIME_ADD adds two PSM-specific high-resolution
time values.
MSOP_TIME_SUB subtracts two PSM-specific high-resolution
time values.
MSOP_TIME_CVT converts PSM-specific high-resolution
time values to seconds and nanoseconds.
MSOP_TIME_SPIN causes the CPU to spin-wait for at
least the amount of time specified in spin_time in microseconds.
Do not specify too high a value for spin_time, to avoid monopolizing the
CPU.
The PSM Time Toolkit includes functions to help implement and calibrate
spin-wait loops for MSOP_TIME_SPIN.
Arguments
rawtime-
pointer to the kernel data area where the PSM stores the high resolution clock value
dst-
time operand, and address to put result of time computation
src-
time operand for time computation
time-
pointer to the converted time
spin_time-
number of milliseconds of spin
Return values
None.
Usage
Hardware applicability
All.
Version applicability
psm:
2
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - 19 June 2005