var TimeTracker=function(a){if(a){this.bucket_=a.sort(this.sortNumber)}else{this.bucket_=TimeTracker.DEFAULT_BUCKET}};TimeTracker.prototype.startTime_;TimeTracker.prototype.stopTime_;TimeTracker.prototype.bucket_;TimeTracker.DEFAULT_BUCKET=[100,500,1500,2500,5000];TimeTracker.prototype._getTimeDiff=function(){return(this.stopTime_-this.startTime_)};TimeTracker.prototype.sortNumber=function(d,c){return(d-c)};TimeTracker.prototype._recordStartTime=function(a){if(a!=undefined){this.startTime_=a}else{this.startTime_=(new Date()).getTime()}};TimeTracker.prototype._recordEndTime=function(a){if(a!=undefined){this.stopTime_=a}else{this.stopTime_=(new Date()).getTime()}};TimeTracker.prototype._track=function(f,a,c){var e;if(a!=undefined&&a.length!=0){e=f._createEventTracker(a)}else{e=f._createEventTracker("TimeTracker")}var d;var b;for(d=0;d<this.bucket_.length;d++){if((this._getTimeDiff())<this.bucket_[d]){if(d==0){b="0-"+(this.bucket_[0]);break}else{b=this.bucket_[d-1]+"-"+(this.bucket_[d]-1);break}}}if(!b){b=this.bucket_[d-1]+"+"}e._trackEvent(b,c,this._getTimeDiff())};TimeTracker.prototype._setHistogramBuckets=function(a){this.bucket_=a.sort(this.sortNumber)};
