Пример #1
0
 @Nonnegative
 public double getRequestsPerSecond() {
   return _requestsPerSecond.getAsDouble();
 }
Пример #2
0
 public void record(@Nonnull Duration requestDuration) {
   _requestsPerSecond.record();
   _averageRequestDuration.record((double) requestDuration.toMilliSeconds());
 }