question: private String parseTimeFromPing ( String ping ) { String time = "" ; if ( ping . contains ( TIME_PING ) ) { int index = ping . indexOf ( TIME_PING ) ; time = ping . substring ( index + 5 ) ; index = time . indexOf ( " " ) ; time = time . substring ( 0 , index ) ; } return time ; }
target:  Gets the time from ping command (if there is)