gives the minimum time interval in seconds recorded on your computer system.
$TimeUnit
gives the minimum time interval in seconds recorded on your computer system.
Examples
Basic Examples (2)
The timing granularity on this machine:
$TimeUnitWhen a computation takes less than $TimeUnit seconds, repeat to get a better timing:
Timing[Total[N[Range[1234]]]]First[%] < $TimeUnitreps = 100000;
{time, res} = Timing[Do[Total[N[Range[1234]]], {reps}]]Divide by the number of repetitions to get the average timing:
time / repsYou may want to time just a part of the computation:
(x = N[Range[1234]];First[Timing[Do[Total[x], {reps}]] / reps])See Also
Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 2003 (5.0)
Text
Wolfram Research (1991), $TimeUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeUnit.html (updated 2003).
CMS
Wolfram Language. 1991. "$TimeUnit." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/$TimeUnit.html.
APA
Wolfram Language. (1991). $TimeUnit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$TimeUnit.html
BibTeX
@misc{reference.wolfram_2026_$timeunit, author="Wolfram Research", title="{$TimeUnit}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/$TimeUnit.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$timeunit, organization={Wolfram Research}, title={$TimeUnit}, year={2003}, url={https://reference.wolfram.com/language/ref/$TimeUnit.html}, note=[Accessed: 13-June-2026]}