clock

OpenTuring

clockmillisecs used procedure

Syntax   clock (var c : int)

Description   The clock statement is used to determine the amount of time since a program (process) started running. Variable c is assigned the number of milliseconds since the program started running.

Example   This program tells you how much time it has used.

        var timeRunning : int
        clock (timeRunning)
        put "This program has run ", timeRunning, " milliseconds"

Execute  

Details   On Apple Macintoshes, the hardware resolution of duration is in units of 17 milliseconds (1/60-th of a second).

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

See also predefined unit Time.