def toc(t=None, name='<STR_LIT>'):
try:<EOL><INDENT>t = t or tic.last_tic_time<EOL><DEDENT>except AttributeError:<EOL><INDENT>logg.warn('<STR_LIT>')<EOL>return<EOL><DEDENT>elapsed = time.time() - t<EOL>logg.info('<STR_LIT>' % (name, elapsed))<EOL>return elapsed<EOL>
ex1)
tic()  # save start time - time1
toc()  # print elapsed time from last calling tic()
toc()  # print elapsed time from last calling tic()

ex2)
t0 = tic()  # simple
t1 = tic()
toc(t1)  # print time from t1
toc(t0)  # print time from t0

:param t: time: 시작 시간 (tic()의 리턴 값)
:param name: str: 출력시 포함할 문자 ['tictoc']