@contextmanager<EOL>def tictoc(name='<STR_LIT>'):
t = time.time()<EOL>yield<EOL>logg.info('<STR_LIT>' % (name, time.time() - t))<EOL>
with tictoc('any string or not'):
    print 'cool~~~'
cool~~~
2015-12-30 14:39:28,458 [INFO] tictoc Elapsed: 7.10487365723e-05 secs
:param name: str