refactored get_response_time, added debug plots