ANSI Common Lisp 25 Environment 25.2 Dictionary of Environment
- Arguments and Values:
form - a form; evaluated as described below.
results - the values returned by the form.
time evaluates form in the current environment (lexical and dynamic).
A call to time can be compiled.
time prints various timing data and other information to trace output.
The nature and format of the printed information is implementation-defined.
Implementations are encouraged to provide such information as
elapsed real time,
machine run time,
and storage management statistics.
- Affected By:
The accuracy of the results depends, among other things, on the accuracy
of the corresponding functions provided by the underlying operating system.
The magnitude of the results may depend on
the operating system,
the lisp implementation,
and the state of the global environment.
Some specific issues which frequently affect the outcome are
nature of the scheduler (if any),
number of competing processes (if any),
whether the call is interpreted or compiled,
whether functions called are compiled,
the kind of garbage collector involved and whether it runs,
whether internal data structures (e.g., hash tables) are implicitly reorganized,
- See Also:
In general, these timings are not guaranteed to be reliable enough for
marketing comparisons. Their value is primarily heuristic, for tuning
For useful background information on the complicated issues involved in
interpreting timing results, see Performance and Evaluation of Lisp Programs.
- Allegro CL Implementation Details:
See cl:time implementation
in implementation.htm for information on the Allegro CL implementation. Note
the links are to the documentation for the current Allegro CL
version. Replace /current/ in the URL with the Allegro CL version
number to see similar documentation in earlier releases.