Can this be created in javascript. A timer?

No, you’ve skipped a section. Here’s the information again. Can you find step 3?

When you have one image that you want to test, you want to start the timer before it, and end the timer after it. So your code will be:

script to start the timer for image 1
image 1
script to end the timer for image 1

What happens then? After the timers and image have been done, you’ll want to show the results for the timer.
So, you the have:

a div to show the results of the timers
a script that uses each of the timers to create the measurement from them
a script that uses the measurement and shows the result in the above results div
a script that cleans up the stored markers