added: method to measure response time