SessionTime

SessionTime[]
gives the total number of seconds of real time that have elapsed since the beginning of your Mathematica session.

DetailsDetails

  • SessionTime starts counting time as soon as your operating system considers your Mathematica process to be executing.
  • SessionTime is accurate only down to a granularity of at least $TimeUnit seconds.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

The number of seconds since this kernel session started:

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

Get cumulative wall-clock timings during a computation:

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

The intervals between timings:

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