(Stopwatch) Design a class named Stopwatch. This class contains: -Private data fields startTime and endTime with getter methods -A method named start() that resets the startTime to the current time -A method named getElapsedTime() that returns the elapsed time for the stopwatch in milliseconds -> Write a test program that measures the execution time of sorting 100,000 numbers using selection sort.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |