Time between clicks on same image

getTime() returns the the number of milliseconds since 01.01.1970
This means it can be used to measure elapsed time in milliseconds.

This example measures the time elapsed between two clicks on the same image, and displays the result (in seconds) in an alert

2