(stopwatch) design a class named stopwatch. the class contains:
(stopwatch) design a class named stopwatch. the class contains:■ the private data fields starttime and endtime with get methods.■ a constructor that initializes starttime with the current time.■ a method named start() that resets the starttime to the current time.■ a method named stop() that sets the endtime to the current time.■ a method named getelapsedtime() that returns the elapsed time for the stop watch in milliseconds.draw the uml diagram for the class, and then implement the class. write a test program that measures the execution time of adding numbers from 1 to 1,000,000.
Price Type: Negotiable
Total Proposals: 1
1 Current viewersl
25 Total views