time

time — gives command execution times.

Syntax

time (iterations, !command)

		

Arguments

iterations

The number of times to execute the command.

command

Any Gamma or Lisp command.

Returns

The number of seconds consumed performing the command for the given number of iterations.

Description

This function performs the command for the given number of iterations and returns the clock time consumed. This does not break down the time into user and system time. Times on successive calls to this function will differ slightly due to operating system requirements, garbage collection and active timers.

Example

Gamma> time(10, list(1,2,3));
3.297225339338183403e_05
Gamma>