Esempio n. 1
0
        private async Task StartCalculate(CharFinder finder, Dictionary <int, Stopwatch> stopwatchers, int arrLength)
        {
            finder.ResetValue();

            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            for (int i = 0; i < arrLength; i++)
            {
                await finder.GetCharCountAsync(finder.strArr[i]);
            }
            stopwatch.Stop();
            stopwatchers.Add(arrLength, stopwatch);
        }