sysclock

OpenTuring

sysclockmillisecs used procedure

Syntax   sysclock ( var c : int )

Description   The sysclock statement is used on a multitasking system such as UNIX to determine the amount of time that has been used by this program (process). Variable c is assigned the number of central processor milliseconds assigned to this program. This is of little use on a personal computer, where sysclock returns the same value as clock.

Example   On a UNIX system, this program tells you how much time it has used.

        var timeUsed : int
        sysclock ( timeUsed )
        put "This program has used ", timeUsed,
                " milliseconds of CPU time"

See also   delay, time, clock, wallclock and date statements.

See also predefined unit Time.