<commit_before>#ifndef BASIC_TIMER_H_
#define BASIC_TIMER_H_

#include <ctime>
#include <sys/timeb.h>

class BasicTimer {
 public:
  void tick() {
    ftime(&tick_);
  }

  uint64_t millisecondsSinceTick() {
    timeb now;
    ftime(&now);
    uint64_t milliseconds = (now.time - tick_.time) * 1000;
    milliseconds += now.millitm - tick_.millitm;
    return milliseconds;
  }

 private:
  timeb tick_;
};

#endif
<commit_msg>Make millisecondsSinceTick functin const<commit_after>#ifndef BASIC_TIMER_H_
#define BASIC_TIMER_H_

#include <ctime>
#include <sys/timeb.h>

class BasicTimer {
 public:
  void tick() {
    ftime(&tick_);
  }

  uint64_t millisecondsSinceTick() const {
    timeb now;
    ftime(&now);
    uint64_t milliseconds = (now.time - tick_.time) * 1000;
    milliseconds += now.millitm - tick_.millitm;
    return milliseconds;
  }

 private:
  timeb tick_;
};

#endif

{'fraction_non_alphanumeric': 0.11724915445321307, 'fraction_numerical': 0.018038331454340473, 'mean_word_length': 3.649214659685864, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2698396', 'n_tokens_mistral': 348, 'n_tokens_neox': 319, 'n_words': 70}