/** * Returns a string representing the current running average, but will use * the new precision rather than the one in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ public String toString(int temporaryPrecision) { return DecimalUtil.toString(getAverage(), temporaryPrecision); }
/** * Returns a string representing the current running average. Will return * a String of the double with the precision set in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ @Override public String toString() { return DecimalUtil.toString(getAverage(), precision); }
/** * Returns a string representing the current running average. Will return * a String of the double with the precision set in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ @Override public String toString() { return DecimalUtil.toString(getAverage(), precision); }
/** * Returns a string representing the current running average, but will use * the new precision rather than the one in the constructor. * <br> * NOTE: Will use a readLock to get a thread-safe version. * @return */ public String toString(int temporaryPrecision) { return DecimalUtil.toString(getAverage(), temporaryPrecision); }
avgWaitTime = (double)getRequestWaitTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgWaitTime, 1)); avgResponseTime = (double)getRequestResponseTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgResponseTime, 1)); avgEstimatedProcessingTime = (double)getRequestEstimatedProcessingTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgEstimatedProcessingTime, 1));
avgWaitTime = (double) getRequestWaitTime() / (double) getResponse(); to.append(DecimalUtil.toString(avgWaitTime, 1)); avgResponseTime = (double) getRequestResponseTime() / (double) getResponse(); to.append(DecimalUtil.toString(avgResponseTime, 1)); avgEstimatedProcessingTime = (double) getRequestEstimatedProcessingTime() / (double) getResponse(); to.append(DecimalUtil.toString(avgEstimatedProcessingTime, 1));
avgWaitTime = (double)getRequestWaitTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgWaitTime, 1)); avgResponseTime = (double)getRequestResponseTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgResponseTime, 1)); avgEstimatedProcessingTime = (double)getRequestEstimatedProcessingTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgEstimatedProcessingTime, 1));
avgWaitTime = (double)getRequestWaitTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgWaitTime, 1)); avgResponseTime = (double)getRequestResponseTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgResponseTime, 1)); avgEstimatedProcessingTime = (double)getRequestEstimatedProcessingTime()/(double)getResponse(); to.append(DecimalUtil.toString(avgEstimatedProcessingTime, 1));