#NEWLINE# @ contextmanager #NEWLINE# def Measure( self , name ) : #NEWLINE# #INDENT# 'Records the start and stop times of the enclosed interval.\n\n    Args:\n      name: A string that names the interval.\n    ' #NEWLINE# start_time = time . time ( ) #NEWLINE# ( yield ) #NEWLINE# stop_time = time . time ( ) #NEWLINE# self . intervals . append ( ( name , name , stop_time ) )