Lab 10A Measure the program execution time
One easy way to measure the program execution time isencapsulate the useful timing functionality of C++ chrono library,This is illustratedinhttps://www.learncpp.com/cpp-tutorial/8-16-timing-your-code/
The example usingChronoTimer.cpp (Github/m10) is anexample program using this chrono Timer class object to measure theSorting on on an integer array of 10000 random integers based onthe Bubble Sort vs. the C++ built-in Sort (anhttps://www.quora.com/Which-sorting-algorithm-does-STL-standard-template-library-use-in-c++.)
Please measure the performance of sorting the same array used inthe usingChronoTimer.cpp example between the InsertionSort vs. the Selection Sort.
Starter
usingChronoTimer.cpp (Github/m10):
#include <chrono> // chrono#include <cstdlib> // srand, rand#include <ctime> // time#include <algorithm> // sort#include <iostream>class Timer {// Type aliases to make