Skip to content

AbsoluteTiming ​

Evaluates an expression and reports the wall-clock time it took.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageAbsoluteTiming✓
AbsoluteTiming(expr){seconds,value}\{seconds, value\}: the wall-clock seconds spent evaluating exprexpr, as a real number, and its value.
Typed signatures
TypePackageApplies
(any) time -> anycombinatoricsalways

Domain: Collections

Details
  • secondsseconds is inherently nondeterministic (it depends on the machine and the moment) — the worked example below extracts just the value half with At, rather than pinning a timing figure.

Examples

Basic #

the value half of the result, extracted with At (seconds is not pinned)

live ↗
InAbsoluteTiming(1+2)[2]\mathrm{AbsoluteTiming}(1+2)[2]Out33
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: Echo