#NEWLINE# def duration( function , * args , **kwargs ) : #NEWLINE# #INDENT# ' Returns the running time of the given function, in seconds.\n    ' #NEWLINE# t = time ( ) #NEWLINE# function ( * args , ** kwargs ) #NEWLINE# return ( time ( ) - t )