parameters: (start, stop=None)
return_statement: return datetime.timedelta(seconds=round(stop - start))
docstring: The duration from start to stop, with nice conversion to string.
docstring_summary: The duration from start to stop, with nice conversion to string.
docstring_tokens: The duration from start to stop with nice conversion to string .
function: def duration(start, stop=None):
    '''The duration from start to stop, with nice conversion to string.'''
    if not stop:
      stop = time.time()
    import datetime
    return datetime.timedelta(seconds=round(stop - start))
function_tokens: def duration ( start , stop = None ) : if not stop : stop = time . time ( ) import datetime return datetime . timedelta ( seconds = round ( stop - start ) )