How to use the console-browserify.time function in console-browserify

To help you get started, we’ve selected a few console-browserify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github massyao / china-invalid-vaccine-flow / js / model / vaccine-points-model.js View on Github external
var VaccinePointsModel = function (vaccines, randomStartPoint, smartSpreadEnabled) {

    this.randomStartPoint = randomStartPoint;
    this.smartSpreadEnabled = smartSpreadEnabled;

    this.vaccines = vaccines;
    this.activeVaccines = [];
    this.stamp = 0;
    this.vaccineIndex = 0;
    this.vaccinesOnPath = {};

    console.time('vaccine sorting'); // eslint-disable-line
    this.vaccines.sort(function (a, b) {
        return a.startMomentUnix - b.startMomentUnix;
    });
    console.timeEnd('vaccine sorting'); // eslint-disable-line
};
github lucified / lucify-refugees / src / js / model / refugee-points-model.js View on Github external
var RefugeePointsModel = function(refugees, randomStartPoint, smartSpreadEnabled) {

  this.randomStartPoint = randomStartPoint;
  this.smartSpreadEnabled = smartSpreadEnabled;

  this.refugees = refugees;
  this.activeRefugees = [];
  this.stamp = 0;
  this.refugeeIndex = 0;
  this.refugeesOnPath = {};

  console.time('refugee sorting'); // eslint-disable-line
  this.refugees.sort(function(a, b) {
    return a.startMomentUnix - b.startMomentUnix;
  });
  console.timeEnd('refugee sorting'); // eslint-disable-line
};
github massyao / china-invalid-vaccine-flow / js / components / vaccine-context-decorator.jsx View on Github external
initMapModel = () => {
            console.time('init map model'); // eslint-disable-line
            this.mapModel = new MapModel(this.features);
            this.progress(20);
            console.timeEnd('init map model'); // eslint-disable-line
            window.setTimeout(this.initPointsList, 15);

        }
github lucified / lucify-refugees / src / js / components / refugee-context-decorator.jsx View on Github external
componentDidMount: function() {
      console.time('load json'); // eslint-disable-line
      var promises = [];

      promises.push(d3.jsonAsync(assets.data('topomap.json')).then(function(data) {
        this.topomap = data;
      }.bind(this)));

      promises.push(d3.jsonAsync(assets.data('asylum.json')).then(function(data) {
        this.asylumData = data;
      }.bind(this)));

      Promise.all(promises).then(function() {
        console.timeEnd('load json'); // eslint-disable-line
        this.dataLoaded();
      }.bind(this), function(error){
        throw error;
      });
github massyao / china-invalid-vaccine-flow / js / components / vaccine-context-decorator.jsx View on Github external
initPointsList = () => {
            console.time('create points list'); // eslint-disable-line
            this.pointList = this.createPointList(this.mapModel);
            this.progress(85);
            console.timeEnd('create points list'); // eslint-disable-line
            window.setTimeout(this.initModels, 15);
        }
github massyao / china-invalid-vaccine-flow / js / components / vaccine-context-decorator.jsx View on Github external
componentDidMount() {
            console.time('load json'); // eslint-disable-line
            var promises = [];
            // promises.push(d3.jsonAsync(assets.data('topomap.json')).then(function(data) {
            promises.push(d3.jsonAsync(assets.data('chinamap.topo.json')).then(function (data) {
                //console.log(data);
                this.topomap = data;
            }.bind(this)));

            promises.push(d3.jsonAsync(assets.data('vaccine.data.json')).then(function (data) {
// amormaid
                this.vaccine_countData = data;
            }.bind(this)));

            Promise.all(promises).then(function () {
                console.timeEnd('load json'); // eslint-disable-line
                this.dataLoaded();
            }.bind(this), function (error) {
github lucified / lucify-refugees / src / js / components / refugee-context-decorator.jsx View on Github external
initPointsList: function() {
      console.time('create points list'); // eslint-disable-line
      this.pointList = this.createPointList(this.mapModel);
      this.progress(85);
      console.timeEnd('create points list'); // eslint-disable-line
      window.setTimeout(this.initModels, 15);
    },
github lucified / lucify-refugees / src / js / components / refugee-context-decorator.jsx View on Github external
initMapModel: function() {
      console.time('init map model'); // eslint-disable-line
      this.mapModel = new MapModel(this.features);
      this.progress(20);
      console.timeEnd('init map model'); // eslint-disable-line
      window.setTimeout(this.initPointsList, 15);
    },

console-browserify

Emulate console for all the browsers

MIT
Latest version published 5 years ago

Package Health Score

68 / 100
Full package analysis

Similar packages