use of org.hisp.dhis.commons.timer.SystemTimer in project dhis2-core by dhis2.
the class DataIntegrityTask method run.
// -------------------------------------------------------------------------
// Runnable implementation
// -------------------------------------------------------------------------
@Override
public void run() {
Timer timer = new SystemTimer().start();
FlattenedDataIntegrityReport report = dataIntegrityService.getFlattenedDataIntegrityReport();
timer.stop();
if (taskId != null) {
notifier.notify(taskId, NotificationLevel.INFO, "Data integrity checks completed in " + timer.toString() + ".", true).addTaskSummary(taskId, report);
}
}
Aggregations