TimeUsed

TimeUsed[]

gives the total number of seconds of CPU time used so far in the current Wolfram System session.

Details

  • TimeUsed records only CPU time actually used by the Wolfram Language kernel. It does not include time used by external processes called by the kernel. It also does not include time during pauses produced by Pause.
  • TimeUsed is accurate only down to a granularity of at least $TimeUnit seconds.

Examples

open allclose all

Basic Examples  (2)

CPU time used by a Wolfram Language kernel:

Get time between function evaluations:

Almost all of the time is spent in the last few evaluations because the precision is adaptive:

Scope  (1)

Get time used by function evaluations and the rest of a computation:

The total computation time:

Get the evaluation times:

Evaluations tended to be faster near the root:

Wolfram Research (1991), TimeUsed, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeUsed.html.

Text

Wolfram Research (1991), TimeUsed, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeUsed.html.

CMS

Wolfram Language. 1991. "TimeUsed." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeUsed.html.

APA

Wolfram Language. (1991). TimeUsed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeUsed.html

BibTeX

@misc{reference.wolfram_2024_timeused, author="Wolfram Research", title="{TimeUsed}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TimeUsed.html}", note=[Accessed: 17-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_timeused, organization={Wolfram Research}, title={TimeUsed}, year={1991}, url={https://reference.wolfram.com/language/ref/TimeUsed.html}, note=[Accessed: 17-November-2024 ]}