#NEWLINE# def timing( self , metric_name , value , timestamp = None , tags = None , sample_rate = 1 , host = None ) : #NEWLINE# #INDENT# '\n        Record a timing, optionally setting tags and a sample rate.\n\n        >>> stats.timing("query.response.time", 1234)\n        ' #NEWLINE# if ( not self . _disabled ) : #NEWLINE# #INDENT# self . _metric_aggregator . add_point ( metric_name , self , ( timestamp or time ( ) ) , value , Timing , sample_rate = sample_rate , host = host )