public void finishedWorker(String prefix, Duration elapsed) {
    Stage stage = currentStage.get();
    if (stage != null) {
      stage.threadStats.add(new ThreadInfo(ProcessInfo.getCurrentThreadState(), prefix, elapsed));
    }
  }
A registry of tasks that are being timed.
planetiler-core/src/main/java/com/onthegomap/planetiler/stats/Timers.java