public long getRunDagDuration() {
    long submitToRunningDuration = getDuration(PerfLogger.TEZ_SUBMIT_TO_RUNNING);

    return submitToRunningDuration == 0 ? getDuration(PerfLogger.TEZ_RUN_DAG) : getEndTime(PerfLogger.TEZ_RUN_DAG) -
        getEndTime(PerfLogger.TEZ_SUBMIT_TO_RUNNING);
  }
Helper method for getting the time spent to actually run the DAG.
common/src/java/org/apache/hadoop/hive/ql/log/PerfLogger.java