@Nullable
  public @Nls String getDuration() {
    if (startTime == endTime) return null;
    if (isRunning()) {
      long duration = startTime == 0 ? 0 : System.currentTimeMillis() - startTime;
      if (duration > 1000) {
        duration -= duration % 1000;
      }
      return NlsMessages.formatDurationApproximate(duration);
    }
    else {
      return isSkipped(myResult) ? null : NlsMessages.formatDuration(endTime - startTime);
    }
  }
@Nullable
  public @Nls String getDuration()