count_seconds ( : : : Seconds )

Elapsed processing time since the last call.

The operator count_seconds helps to measure the runtime. The first call of the procedure normally returns a zero. Each further call returns the processing time which has elapsed in the meantime in seconds. The C-function "clock'" is used for the measurement.


Attention

The time measurement is not exact and depends on the load of the computer.


Parameters

Seconds (output_control)
real -> real
Processtime since the program start.


Example
count_seconds(:::Start) >
/* aktion to be measured */
count_seconds(:::End) >
eval(::End - Start:RunTime).

Result

The operator count_seconds always returns the value TRUE.



Copyright © 1996-1997 MVTec Software GmbH