#NEWLINE# def took( first_time , last_time ) : #NEWLINE# #INDENT# if ( type ( first_time ) is not datetime . datetime ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# if ( type ( elapsed_time ) is not datetime . datetime ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# elapsed_time = ( last_time - first_time ) #NEWLINE# return int ( elapsed_time . total_seconds ( ) )