Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
Clock


NAME

Clock - report real and CPU time used

SYNOPSIS

CONST UnitsPerSecond = 100;


PROCEDURE RealTime(reset: BOOLEAN): CARDINAL; PROCEDURE CPUTime (reset: BOOLEAN): CARDINAL;

DESCRIPTION

UnitsPerSecond stands for the local clock resolution, which can vary from system to system.

RealTime and CPUTime return the real, resp. CPU time in units elapsed since the start of the current process or since the last call with argument TRUE. They work independently from each other. Note that after each MAX(CARDINAL) units a wrap-around will happen.

SEE ALSO

times(2)

AUTHOR

Martin Hasch, University of Ulm
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine