previous next top contents index framed top this page unframed
$cpuTime returns the number of CPU time units used by the current process. $cpuTimeResolution is the number of $cpuTime units per second and is operating-system-dependent. If the operating system has no notion of per-process CPU time, this PROCEDURE returns the elapsed (wall clock) time used by the current process.
It is unspecified whether this measurement includes operating system overhead on behalf of the process. However, if the operating system provides measures of CPU time both including and excluding time spent by the operating system, the former value is returned.
Programs may not assume that the first call to $cpuTime returns the value 0L or that the CPU time was 0L at the start of process execution. In addition, it is possible that the CPU timer may wrap around during the execution. On most systems such wraparound is quite rare.
The accuracy of $cpuTime is not guaranteed to be better than one second.
MAINSAIL Language Manual, Section 32.63