code: public void endMonitoring() {
          if (debug) LogD("End monitoring");
          commitEditor();
          long start = settings.getLong(KEY_MONITOR_START, 0);
          if (start == 0) {
              if (debug) LogD("Monitor error. End monitoring called before start.");
              return;
          }
          editor.putLong(KEY_MONITOR_TOTAL, settings.getLong(KEY_MONITOR_TOTAL, 0) + (System.currentTimeMillis() - start));
          editor.putLong(KEY_MONITOR_START, 0);
          commitEditor();
      }
docs: End montoring