public Beaverland() { InitializeComponent(); TimerStart(); FigureTimer(); Sw.Start(); }
public void Inicializar() { Before2 = GC.CollectionCount(2); Before1 = GC.CollectionCount(1); Before0 = GC.CollectionCount(0); Sw.Start(); }
public long Add() { Sw.Reset(); Sw.Start(); for (int i = 0; i < _size; i++) { _collection.Add(i, i); } Sw.Stop(); return(Sw.ElapsedTicks); }
public long Reach() { var rnd = new Random(); Sw.Reset(); Sw.Start(); for (int i = 0; i < 100; i++) { _collection.ContainsKey(rnd.Next(0, _size)); } Sw.Stop(); return(Sw.ElapsedTicks); }