Я ищу некоторые простые образцы JavaScript для вычисления прошедшего времени. Мой сценарий, для конкретной точки выполнения кода JavaScript, я хочу записать время начала. И в другой конкретной точке исполнения кода JavaScript я хочу записать время окончания.
Затем я хочу рассчитать прошедшее время в виде: сколько дней, часов, минут и секунд прошло между временем окончания и временем начала, например: 0 Days, 2 Hours, 3 Minutes and 10 Seconds are elapsed
.
Любые эталонные простые образцы?: -)
Спасибо заранее,
Джордж