RepeatedTiming[expr]
evaluates expr repeatedly and returns a list of the average time in seconds used, together with the result obtained.
RepeatedTiming[expr,t]
does repeated evaluation for at least t seconds.


RepeatedTiming
RepeatedTiming[expr]
evaluates expr repeatedly and returns a list of the average time in seconds used, together with the result obtained.
RepeatedTiming[expr,t]
does repeated evaluation for at least t seconds.
Details

- RepeatedTiming has attribute HoldFirst.
- RepeatedTiming[expr;] will give {timing,Null}.
- The value of expr returned by RepeatedTiming comes from the first evaluation of expr made by RepeatedTiming.
- RepeatedTiming always evaluates expr at least four times. It gives a trimmed mean of the timings obtained, discarding lower and upper quartiles.
- RepeatedTiming gives a result whose precision is typically between one and three digits, reflecting both variance in timing results and underlying precision of the operating system clock.
- RepeatedTiming measures "wall clock time" and is subject to the same limitations as AbsoluteTiming.
- RepeatedTiming[expr] uses a total time that is scaled based on initial measurements of the evaluation time for expr.
See Also
Timing AbsoluteTiming EchoTiming EvaluationData TimeConstrained TrimmedMean
Function Repository: WolframMark EvaluateBenchmark
Related Guides
History
Text
Wolfram Research (2015), RepeatedTiming, Wolfram Language function, https://reference.wolfram.com/language/ref/RepeatedTiming.html.
CMS
Wolfram Language. 2015. "RepeatedTiming." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RepeatedTiming.html.
APA
Wolfram Language. (2015). RepeatedTiming. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RepeatedTiming.html
BibTeX
@misc{reference.wolfram_2025_repeatedtiming, author="Wolfram Research", title="{RepeatedTiming}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/RepeatedTiming.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_repeatedtiming, organization={Wolfram Research}, title={RepeatedTiming}, year={2015}, url={https://reference.wolfram.com/language/ref/RepeatedTiming.html}, note=[Accessed: 14-August-2025]}