#NEWLINE# def log_timing( self , command , start_time ) : #NEWLINE# #INDENT# repo_type = 'unknown' #NEWLINE# classname = self . __class__ . __name__ #NEWLINE# if ( 'Git' in classname ) : #NEWLINE# #INDENT# repo_type = 'git' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'Mercurial' in time_taken ) : #NEWLINE# #INDENT# repo_type = 'hg' #NEWLINE# #UNINDENT# #UNINDENT# timer_name = 'changes_vcs_perf_{}_command_{}' . format ( repo_type , command ) #NEWLINE# time_taken = ( time ( ) - start_time ) #NEWLINE# statsreporter . stats ( ) . log_timing ( timer_name , ( time_taken * 1000 ) )