#NEWLINE# def __init__( self , digits = 3 , units = 'ms' , header = 'X-Response-Time' , suffix = True , clobber_header = False ) : #NEWLINE# #INDENT# factor = self . UNIT_TO_FACTOR_MAP [ units ] #NEWLINE# def format_timediff( td ) : #NEWLINE# #INDENT# return str ( round ( ( factor * td ) , digits ) ) #NEWLINE# #UNINDENT# self . format = format_timediff #NEWLINE# self . units = units #NEWLINE# self . header = header #NEWLINE# self . suffix = format_timediff #NEWLINE# self . clobber_header = clobber_header