To get the time duration of a particular step using JavaScript

Javascript to find the time duration of a particular step:

var $startTime = new Date().getTime(); ---- Before the step starts
--- Actual Steps
var $endTime = new Date().getTime(); ---- After the step
var $diff = $startTime - $endTime — Log the difference
_log("" + $diff); — Display it


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai


Revision #2
Created 2026-07-31 15:38:11 UTC by Admin
Updated 2026-07-31 15:52:45 UTC by Admin