#NEWLINE# def get_proc_run_time( ) : #NEWLINE# #INDENT# duration = 0 #NEWLINE# for line in pykd . dbgCommand ( '.time' ) . splitlines ( ) [ ( - 2 ) : ] : #NEWLINE# #INDENT# line = line . strip ( ) . split ( ) #NEWLINE# duration += ( int ( line [ 2 ] ) * 86400 ) #NEWLINE# line = line [ ( - 1 ) ] . split ( '.' ) #NEWLINE# duration += float ( ( '0.%s' % line [ ( - 1 ) ] ) ) #NEWLINE# line = line [ 0 ] . split ( ':' ) #NEWLINE# duration += ( int ( line [ 0 ] ) * 3600 ) #NEWLINE# duration += ( int ( line [ 1 ] ) * 60 ) #NEWLINE# duration += int ( line [ 2 ] ) #NEWLINE# #UNINDENT# return duration