#NEWLINE# def toc( self ) : #NEWLINE# #INDENT# 'Returns and prints time elapsed since last\n        tic() or tac() whichever occured last' #NEWLINE# import time #NEWLINE# if ( self . start is None ) : #NEWLINE# #INDENT# raise Exception ( 'toc() without tic()' ) #NEWLINE# #UNINDENT# t = time . time ( ) #NEWLINE# self . last = t #NEWLINE# elapsed = ( t - self . start ) #NEWLINE# print ( 'TOC: Elapsed: {} seconds.' . format ( elapsed ) ) #NEWLINE# return elapsed