Skip to main content
Participant
March 24, 2019
Question

how to start timing or stop watch at 15 sec?

  • March 24, 2019
  • 1 reply
  • 280 views

I am using below script to start the timing. (Click on source text and paste the below script). But it is automatically starting timing from 0. I want that timing should start from 15 sec. How to do that?

rate = 1;

clockStart = 15;

function padZero(n){

if (n < 10) return "0" + n else return "" + n

}

clockTime = Math.max(clockStart + rate*(time - inPoint),0);

t = Math.floor(clockTime);

min = Math.floor((t%3600)/60);

sec = Math.floor(t%60);

min + ":" + padZero(sec)

This topic has been closed for replies.

1 reply

Community Expert
March 24, 2019

Use a better expression. Google Dan Ebberts Universal timer. Read the explanation.

Your expression has syntax errors.