code: public double getElapsedTime(int stage) {
         if (stage == ProfilingEvent.START.ordinal()) {
            return 0;
         }
         return (currentTimes[stage] - currentTimes[stage - 1]) / MILLION;
      }
docs: Elapsed time for a single event only, i.e. since the previous stage rather than from the start.