Exemplo n.º 1
0
        internal void begin_track(_performance_track type)
        {
            int i = (int)type;

            if (++this._performance_counters[i] != 1)
            {
                return;
            }

            this._performance_begin[i] = this._performance_timer.ElapsedTicks;
        }
Exemplo n.º 2
0
        internal void end_track(_performance_track type)
        {
            int i = (int)type;

            if (--this._performance_counters[i] != 0)
            {
                return;
            }

            long now = this._performance_timer.ElapsedTicks;

            this._performance_ticks[i] += now - this._performance_begin[i];
            this._performance_times[i]++;
        }