TimeUsed

TimeUsed[]
gives the total number of seconds of CPU time used so far in the current Mathematica session.

DetailsDetails

  • TimeUsed records only CPU time actually used by the Mathematica 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.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

CPU time used by a Mathematica kernel:

In[1]:=
Click for copyable input
Out[1]=

Get time between function evaluations:

In[1]:=
Click for copyable input
Out[1]=

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

In[2]:=
Click for copyable input
Out[2]=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »