docs: private int saveStartTime(long time)
      {
          int indexUsed = diagIndex;
          alarmTime[diagIndex++] = time;
          if (diagIndex >= MAX_DIAG_LOG)
          {
              diagIndex = 0;
          }
          return indexUsed;
      }