Skip to content
Tristan Hume edited this page Apr 23, 2012 · 3 revisions

#sysclock

##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.html, time.html, clock.html, wallclock.html and date.html statements.

See also predefined unit timemodule.html.

Clone this wiki locally