I have found a way to show the run time in a specific cell in a notebook (.nb).

Now, I want to have the whole run time including all cells in a specific notebook.

How is it possible to calculate it ? Is there any special functions or commands or options ?

  • 10
    $\begingroup$ You can have t = AbsoluteTime[] at the beginning and AbsoluteTime[] - t at the end. Or do you need timings for each cell separately? $\endgroup$
    – Szabolcs
    Jul 3, 2013 at 7:59
  • 1
    $\begingroup$ @Szabolcs tic...toc :-) $\endgroup$
    – Yves Klett
    Jul 3, 2013 at 8:08
  • 1
    $\begingroup$ Try SessionTime[]. $\endgroup$
    – Sumit
    Jul 3, 2013 at 10:59
  • 1
    $\begingroup$ SessionTime would be equivalent to AbsoluteTime in this case. You would still need t =SessionTime[]; at the beginning and SessionTime[] -t at the end. $\endgroup$ Jul 3, 2013 at 11:24

1 Answer 1


If you enable the display of timings in Options:


your notebook will show when the first cell started to evaluate and when the last cell finished.

top cell timing

bottom cell timing

I think you need an extra blank cell at the bottom to get the last value.

If you can't do this sum in your head, perhaps there's a way to extract the times using CellLabel...

  • $\begingroup$ Thank you all! I'm trying all the tricks you said right now. $\endgroup$
    – Shield
    Jul 7, 2013 at 10:23
  • $\begingroup$ @Szabolcs : I think t = AbsoluteTime[] at the beginning and AbsoluteTime[] - t at the end, is the best way to calculate the whole run time in a notebook(.nb) with high accuracy. Thank you Szabolcs, again ! $\endgroup$
    – Shield
    Jul 7, 2013 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.