similar to matlab toc

    SeeAlso:
        ut.tic

def toc(tt, return_msg=False, write_msg=True, verbose=None):
    """
    similar to matlab toc

    SeeAlso:
        ut.tic
    """
    if verbose is not None:
        write_msg = verbose
    (msg, start_time) = tt
    ellapsed = (default_timer() - start_time)
    if (not return_msg) and write_msg and msg is not None:
        sys.stdout.write('...toc(%.4fs, ' % ellapsed + '"' + str(msg) + '"' + ')\n')
    if return_msg:
        return msg
    else:
        return ellapsed