Forum Discussion
RayParkinson-4f
4 years agoCommunity Member
Elapsed time capture
Hi everyone.
I am creating a project whereby we have a simple button to Begin. When the Begin button is clicked, a new Get Ready layer is displayed. The Get Ready layer is then displayed for a sho...
MathNotermans-9
4 years agoCommunity Member
With Javascript you can capture the elapsed time in milliseconds.
This code can do the trick...
var startTime, endTime;
function start() {
startTime = new Date();
};
function end() {
endTime = new Date();
var timeDiff = endTime - startTime; //in ms
console.log(timeDiff + " milliseconds");
}Related Content
- 8 months ago