I’m not sure what you’re after exactly, but here’s a clock expression (for a text layer’s source text) that might help:
beginTime = 0; // beginning time (seconds)
mult = 1; // clock speed multiplier
function digits(myVal,myNumDigits){
var s = myVal.toString();
while (s.length < myNumDigits) s = '0' + s;
return s;
}
currTime = beginTime + time*mult;
hr = digits(Math.floor(currTime/3600),2);
min = digits(Math.floor((currTime%3600)/60),2);
sec = digits(Math.floor(currTime)%60,2);
ms = digits(Math.floor(currTime%1*1000),3);
hr + ":" + min + ":" + sec + "." + ms
If you want it to start at a time other than 0, set beginTime.
If you want it to count faster or slower than comp time, modify mult.
(mult = -1 will count down).
Dan