# How to calculate the whole run time in a specific notebook?

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 ?

• You can have t = AbsoluteTime[] at the beginning and AbsoluteTime[] - t at the end. Or do you need timings for each cell separately? Jul 3, 2013 at 7:59
• @Szabolcs tic...toc :-) Jul 3, 2013 at 8:08
• Try SessionTime[]. Jul 3, 2013 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. Jul 3, 2013 at 11:24

If you can't do this sum in your head, perhaps there's a way to extract the times using CellLabel...
• @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 ! Jul 7, 2013 at 13:22