Search in sources :

Example 16 with ProcessedEventsRateString

use of de.invesdwin.util.lang.ProcessedEventsRateString in project invesdwin-context-persistence by subes.

the class ADatabasePerformanceTest method printProgress.

protected void printProgress(final String action, final Instant start, final long count, final long maxCount) {
    final Duration duration = start.toDuration();
    log.info("%s: %s/%s (%s) %s during %s", action, count, maxCount, new Percent(count, maxCount).toString(PercentScale.PERCENT), new ProcessedEventsRateString(count, duration), duration);
}
Also used : ProcessedEventsRateString(de.invesdwin.util.lang.ProcessedEventsRateString) Percent(de.invesdwin.util.math.decimal.scaled.Percent) Duration(de.invesdwin.util.time.duration.Duration)

Aggregations

ProcessedEventsRateString (de.invesdwin.util.lang.ProcessedEventsRateString)16 Duration (de.invesdwin.util.time.duration.Duration)16 Percent (de.invesdwin.util.math.decimal.scaled.Percent)13 Instant (de.invesdwin.util.time.Instant)2 FDate (de.invesdwin.util.time.fdate.FDate)1