Your IP : 3.135.223.175


Current Path : /usr/local/mgr5/skins/orion/src/
Upload File :
Current File : //usr/local/mgr5/skins/orion/src/App.ChkPerf.js

/**
 *  Calculate time of operations
 *  @param {object} window  global object
 *  @param {object} $ jQuery
 *  @param {object} EventMgr EventMgr
 * */
App.ChkPerf = function(window, $, EventMgr) {
  'use strict';
  var start;
  function init() {
    //EventMgr.bind('startbuildTab', startTime);
    //EventMgr.bind('appended', stopTime);
  }

  function startTime(e, data) {
    start = new Date();
    //EventMgr.trigger('pullMsg', 'start');
  }

  function stopTime(e, data) {
    var end = new Date();
    var t = (end.getTime() - start.getTime()) + ' мс';
    EventMgr.trigger('pullMsg', { msg: t });
  }
  return {
    init: init
  };
}(window, $, EventMgr);