long startTime = endTime - amountOfData;
log.debug("Computing baselines for " + scheduleIds.size() + " schedules");
MetricsBaselineCalculator baselineCalculator = new MetricsBaselineCalculator(sessionManager.getMetricsDAO());
long calcStartTime = System.currentTimeMillis();
Map<Integer, MeasurementBaseline> results = baselineCalculator.calculateBaselines(scheduleIds, startTime,
endTime);
long calcEndTime = System.currentTimeMillis();
if (log.isDebugEnabled()) {
log.debug("Finished computing " + results.size() + " new baselines in " + (calcEndTime - calcStartTime)