@Test public void getResponseTime() throws Exception { timeProvider.setNow(1000); timeStampRecorder.readResponseHttpHeaders(); timeProvider.setNow(2000); timeStampRecorder.responseBodyCompleted(); assertEquals(1000, timeStampRecorder.getResponseTime()); }
@Override public long getResponseTime() { return responseBodyCompleted - readResponseHttpHeaders; }
TimeStampRecorder implements RecordedTimeStamps { @Override public long getResponseTime() { return responseBodyCompleted - readResponseHttpHeaders; } }
TimeStampRecorder implements RecordedTimeStamps { @Override public long getResponseTime() { return responseBodyCompleted - readResponseHttpHeaders; } TimeStampRecorder(TimeProvider timeProvider); }
TimeStampRecorder implements RecordedTimeStamps { @Override public long getResponseTime() { return responseBodyCompleted - readResponseHttpHeaders; } TimeStampRecorder(TimeProvider timeProvider); void recordCreatedRequest(); void startWriteHeaders(); void completedWriteHeaders(); void startWriteBody(); void completedWriteBody(); void completedWriteLastBody(); void readResponseHttpHeaders(); void responseBodyStart(); void responseBodyCompleted(); @Override long getCreatedRequest(); @Override long getStartWriteHeaders(); @Override long getCompletedWriteHeaders(); @Override long getStartWriteBody(); @Override long getCompletedWriteBody(); @Override long getCompletedWriteLastBody(); @Override long getReadResponseHttpHeaders(); @Override long getResponseBodyStart(); @Override long getResponseBodyCompleted(); @Override long getCompleteRequestTime(); @Override long getRequestTime(); @Override long getResponseTime(); @Override long getServerProcessTime(); @Override String toString(); }
TimeStampRecorder implements RecordedTimeStamps { @Override public long getResponseTime() { return responseBodyCompleted - readResponseHttpHeaders; } TimeStampRecorder(TimeProvider timeProvider); void recordCreatedRequest(); void startWriteHeaders(); void completedWriteHeaders(); void startWriteBody(); void completedWriteBody(); void completedWriteLastBody(); void readResponseHttpHeaders(); void responseBodyStart(); void responseBodyCompleted(); @Override long getCreatedRequest(); @Override long getStartWriteHeaders(); @Override long getCompletedWriteHeaders(); @Override long getStartWriteBody(); @Override long getCompletedWriteBody(); @Override long getCompletedWriteLastBody(); @Override long getReadResponseHttpHeaders(); @Override long getResponseBodyStart(); @Override long getResponseBodyCompleted(); @Override long getCompleteRequestTime(); @Override long getRequestTime(); @Override long getResponseTime(); @Override long getServerProcessTime(); @Override String toString();  }