Mathematica > Core Language > Tuning & Debugging > Time Measurement & Optimization >
Mathematica > Data Manipulation > Date & Time > Time Measurement & Optimization >

TimeUsed

TimeUsed[]
gives the total number of seconds of CPU time used so far in the current Mathematica session.
  • 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.
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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team