code: @Override
    public long getDuration() {
      final long end = running.get() ? System.nanoTime() : endTime.get();
      return end - startTime.get();
    }
docs: Returns the duration in nanoseconds. No checks are performed to ensure that the stopwatch
  has been properly started and stopped before executing this method. If called before stop
  it will return the current duration.