{"size": 434, "ext": "js", "max_stars_repo_path": "src/timing.js", "max_stars_repo_name": "phil-allcock/Canvas-Drawing-Tool", "max_stars_repo_stars_event_min_datetime": "2016-08-29T13:46:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-11T21:36:23.000Z", "max_issues_repo_path": "src/timing.js", "max_issues_repo_name": "phil-allcock/Canvas-Drawing-Tool", "max_issues_repo_issues_event_min_datetime": "2016-08-31T17:49:31.000Z", "max_issues_repo_issues_event_max_datetime": "2017-12-12T21:41:45.000Z", "max_forks_repo_path": "src/timing.js", "max_forks_repo_name": "phil-allcock/Canvas-Drawing-Tool", "max_forks_repo_forks_event_min_datetime": "2016-12-24T11:04:39.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-27T08:10:49.000Z"}
{"max_stars_count": 23, "max_issues_count": 16, "max_forks_count": 8, "avg_line_length": 15.5, "max_line_length": 50, "alphanum_fraction": 0.564516129}
var now = function () {
  if(window.performance.now instanceof Function) {
    return window.performance.now();
  }

  return Date.now();
};

var marks = {};
var measures = {};

module.exports = {
  mark: function (name) {
    marks[name] = now();
  },

  measure: function (name, m1, m2) {
    measures[name] = marks[m2] - marks[m1];
  },

  all: function () {
    return {
      marks: marks,
      measures: measures
    };
  }
};
