singleReport(length){
        // FALLBACK SIZE
        let size = length;
        if (size > this.tickStore.length){
            size = this.tickStore.length;
        }

        // FALLBACK MIN SIZE
        if (this.tickStore.length <= 2){
            return null;
        }

        let percentages = [];

        // CYCLE
        for (let i = 0; i < size - 1; i++){
            // GET TIMINGS
            let tStart = this.tickStore[i];
            let tEnd = this.tickStore[i + 1];

            // CALCULATE PERCENT TO LAST TICK
            let time = tStart - tEnd;
            let percent = time / this.tickSystem.tickTime;

            // PUSH PERCENT
            percentages.push(percent);
        }

        let total = 0;
        // GET AVERAGE
        for (let i = 0; i < percentages.length; i++){
            total += percentages[i];
        }
        let avg = total / percentages.length;

        // CONVERT TO READABLE PERCENT
        avg *= 100;
        avg = Math.floor(100 - (avg - 100));

        return avg;
    }
/**
     *
     * Monitors the Performance
     *
     * @param {number} length amount of ticks to analyze
     *
     * @return {number} performance of last x frames in percent
     *
     */
Monitors the Performance
@param {number} length amount of ticks to analyze

@return {number} performance of last x frames in percent
Monitors the Performance @param { number } length amount of ticks to analyze @return { number } performance of last x frames in percent
singleReport(length){
        let size = length;
        if (size > this.tickStore.length){
            size = this.tickStore.length;
        }
        if (this.tickStore.length <= 2){
            return null;
        }
        let percentages = [];
        for (let i = 0; i < size - 1; i++){
            let tStart = this.tickStore[i];
            let tEnd = this.tickStore[i + 1];
            let time = tStart - tEnd;
            let percent = time / this.tickSystem.tickTime;
            percentages.push(percent);
        }
        let total = 0;
        for (let i = 0; i < percentages.length; i++){
            total += percentages[i];
        }
        let avg = total / percentages.length;
        avg *= 100;
        avg = Math.floor(100 - (avg - 100));
        return avg;
    }
singleReport ( length ) { let size = length ; if ( size > this . tickStore . length ) { size = this . tickStore . length ; } if ( this . tickStore . length <= 2 ) { return null ; } let percentages = [ ] ; for ( let i = 0 ; i < size - 1 ; i ++ ) { let tStart = this . tickStore [ i ] ; let tEnd = this . tickStore [ i + 1 ] ; let time = tStart - tEnd ; let percent = time / this . tickSystem . tickTime ; percentages . push ( percent ) ; } let total = 0 ; for ( let i = 0 ; i < percentages . length ; i ++ ) { total += percentages [ i ] ; } let avg = total / percentages . length ; avg *= 100 ; avg = Math . floor ( 100 - ( avg - 100 ) ) ; return avg ; }
Monitors the Performance
 @param {number} length amount of ticks to analyze
Monitors the Performance @param { number } length amount of ticks to analyze
// FALLBACK SIZE // FALLBACK MIN SIZE // CYCLE // GET TIMINGS // CALCULATE PERCENT TO LAST TICK // PUSH PERCENT // GET AVERAGE // CONVERT TO READABLE PERCENT