private void TEST_10_VisMid(SpeedStatistic.Counter cntr, string tableForCount) { totalElapsed += cntr.ElapsedMs; totalElapsedQ++; if (totalElapsedQ == threadsQuantity) { Console.WriteLine("MID time: {0};", totalElapsed / totalElapsedQ); //SpeedStatistic.StopCounter("START ALL"); //SpeedStatistic.PrintOut("START ALL"); var totalCntr = SpeedStatistic.GetCounter("START ALL"); totalCntr.Stop(); totalCntr.PrintOut(); using (var tran = engine.GetTransaction()) { ulong nrnsCnt = tran.Count(tableForCount); ulong speed = 0; if (totalCntr.ElapsedMs > 0) { speed = (ulong)((double)nrnsCnt * 1000 / (double)totalCntr.ElapsedMs); } Console.WriteLine("Total Nrns: {0}; Speed: {1} records/sec", nrnsCnt, speed); } SpeedStatistic.ClearAll(); } //Console.WriteLine(totalElapsedQ); }
private void VisMid(SpeedStatistic.Counter cntr) { totalElapsed += cntr.ElapsedMs; totalElapsedQ++; if (totalElapsedQ == threadsQuantity) { Console.WriteLine("MID: {0};", totalElapsed / totalElapsedQ); SpeedStatistic.StopCounter("START ALL"); SpeedStatistic.PrintOut("START ALL"); } //Console.WriteLine(totalElapsedQ); }