find the current time by calling time time(and store it as timestamp at the start of the programas well as at the start of each lap keep lap counter and increment it every time the user presses enter calculate the elapsed time by subtracting timestamps handle the keyboardinterrupt exception so the user can press ctrl- to quit open new file editor tab and save it as stopwatch py step set up the program to track times the stopwatch program will need to use the current timeso you'll want to import the time module your program should also print some brief instructions to the user before calling input()so the timer can begin after the user presses enter then the code will start tracking lap times enter the following code into the file editorwriting todo comment as placeholder for the rest of the code#python stopwatch py simple stopwatch program import time display the program' instructions print('press enter to begin afterwardpress enter to "clickthe stopwatch press ctrl- to quit 'input(press enter to begin print('started 'starttime time time(get the first lap' start time lasttime starttime lapnum todostart tracking the lap times now that we've written the code to display the instructionsstart the first lapnote the timeand set our lap count to step track and print lap times now let' write the code to start each new lapcalculate how long the previous lap tookand calculate the total time elapsed since starting the stopwatch we'll display the lap time and total time and increase the lap count for each new lap add the following code to your program#python stopwatch py simple stopwatch program import time --snip-keeping timescheduling tasksand launching programs