$TimeUnit
✖
$TimeUnit
Examples
Basic Examples (2)Summary of the most common use cases
The timing granularity on this machine:
In[1]:=1

✖
https://wolfram.com/xid/0b0m6alvk7i-hu4zbe
Out[1]=1

When a computation takes less than $TimeUnit seconds, repeat to get a better timing:
In[1]:=1

✖
https://wolfram.com/xid/0b0m6alvk7i-dcni0n
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0b0m6alvk7i-hcyapv
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0b0m6alvk7i-jz010
Out[3]=3

Divide by the number of repetitions to get the average timing:
In[4]:=4

✖
https://wolfram.com/xid/0b0m6alvk7i-ck16qp
Out[4]=4

You may want to time just a part of the computation:
In[5]:=5

✖
https://wolfram.com/xid/0b0m6alvk7i-d8dmea
Out[5]=5

Wolfram Research (1991), $TimeUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeUnit.html (updated 2003).
✖
Wolfram Research (1991), $TimeUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeUnit.html (updated 2003).
Text
Wolfram Research (1991), $TimeUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeUnit.html (updated 2003).
✖
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.
✖
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
✖
Wolfram Language. (1991). $TimeUnit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$TimeUnit.html
BibTeX
✖
@misc{reference.wolfram_2025_$timeunit, author="Wolfram Research", title="{$TimeUnit}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/$TimeUnit.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_$timeunit, organization={Wolfram Research}, title={$TimeUnit}, year={2003}, url={https://reference.wolfram.com/language/ref/$TimeUnit.html}, note=[Accessed: 25-March-2025
]}