Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
You can have t = AbsoluteTime[] at the beginning and AbsoluteTime[] - t at the end. Or do you need timings for each cell separately? – Szabolcs Jul 3 '13 at 7:59
@Szabolcs tic...toc :-) – Yves Klett Jul 3 '13 at 8:08
Try SessionTime[]. – Sumit Jul 3 '13 at 10:59
SessionTime would be equivalent to AbsoluteTime in this case. You would still need t =SessionTime[]; at the beginning and SessionTime[] -t at the end. – Corey Kelly Jul 3 '13 at 11:24

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...

share|improve this answer
Thank you all! I'm trying all the tricks you said right now. – Shield Jul 7 '13 at 10:23
@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 ! – Shield Jul 7 '13 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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