Categories
How to compare the execution time of sorts?
write a program that sorts an array of n elements with two sorts compare the execution time of sorts
Answer the question
In order to leave comments, you need to log in
It is possible through Stopwatch.
Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); // Нужные действия для замера скорости. stopwatch.Stop(); Console.WriteLine("Время выполнения: {0}", stopwatch.Elapsed);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question