$TimeUnit

$TimeUnit

gives the minimum time interval in seconds recorded on your computer system.

Details

  • Typical values for $TimeUnit are 1/100 and 1/1000.
  • $TimeUnit determines the minimum granularity of measurement in functions like Timing and DateList.
  • In some functions the actual time granularity may be much smaller than $TimeUnit.

Examples

Basic Examples  (2)

The timing granularity on this machine:

When a computation takes less than $TimeUnit seconds, repeat to get a better timing:

Divide by the number of repetitions to get the average timing:

You may want to time just a part of the computation:

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).

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_2023_$timeunit, author="Wolfram Research", title="{$TimeUnit}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/$TimeUnit.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_$timeunit, organization={Wolfram Research}, title={$TimeUnit}, year={2003}, url={https://reference.wolfram.com/language/ref/$TimeUnit.html}, note=[Accessed: 19-March-2024 ]}