def toc(*args, **kwargs):
global Gtic_start<EOL>f_elapsedTime = time.time() - Gtic_start<EOL>for key, value in kwargs.items():<EOL><INDENT>if key == '<STR_LIT>':   return value % f_elapsedTime<EOL>if key == '<STR_LIT:default>':    return "<STR_LIT>" % f_elapsedTime<EOL><DEDENT>return f_elapsedTime<EOL>
Port of the MatLAB function of same name

Behaviour is controllable to some extent by the keyword
args: