Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-145
CONVERTPROCESSTIME Procedure
CONVERTPROCESSTIME Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Condition Code Settings
Related Programming Manual
Summary
The CONVERTPROCESSTIME procedure is used to convert the quad microsecond
process time returned by the PROCESSTIME, MYPROCESSTIME, or
PROCESSINFO procedure into hours, minutes, seconds, milliseconds, and
microseconds. The maximum time that this procedure can convert is 3.7 years (the
amount of time that can be represented using the output parameters).
Syntax for C Programmers
•
The function value returned by CONVERTPROCESSTIME, which indicates the
condition code, can be interpreted by
_status_lt(), _status_eq(), or
_status_gt() (defined in the file tal.h).
Syntax for TAL Programmers
Parameters
process-time input
FIXED:value
specifies the time to be converted.
#include <cextdecs(CONVERTPROCESSTIME)>
_cc_status CONVERTPROCESSTIME ( long long process-time
,[ short _near *hours ]
,[ short _near *minutes ]
,[ short _near *seconds ]
,[ short _near *milliseconds ]
,[ short _near *microseconds ] );
CALL CONVERTPROCESSTIME ( process-time ! i
,[ hours ] ! o
,[ minutes ] ! o
,[ seconds ] ! o
,[ milliseconds ] ! o
,[ microseconds ] ); ! o