jackbone.js
function (t, timerName) {
            if (this.enabled) {
                var id = _.uniqueId('jt');
                this._startDate[id] = t || (+new Date());
                if (console.profile && timerName) {
                    this._timerConsoleName[id] = timerName;
                    console.profile(timerName);
                }
                return id;
            }
        }
function (t, timerName) {
            if (this.enabled) {
                var id = _.uniqueId('jt');
                this._startDate[id] = t || (+new Date());
                if (console.profile && timerName) {
                    this._timerConsoleName[id] = timerName;
                    console.profile(timerName);
                }
                return id;
            }
        }
function ( t , timerName ) { if ( this . enabled ) { var id = _ . uniqueId ( 'jt' ) ; this . _startDate [ id ] = t || ( + new Date ( ) ) ; if ( console . profile && timerName ) { this . _timerConsoleName [ id ] = timerName ; console . profile ( timerName ) ; } return id ; } }
Called at the beggining of an operation
Called at the beggining of an operation