Time to upgrade! You only have until October 31, 2019 to move to Dynatrace, our all-in-one software intelligence platform. For details, see the Synthetic Upgrade Center and Dynatrace Synthetic documentation.

Calculating time difference between two dates

To calculate the difference, in milliseconds, between two dates, use this JavaScript in a Custom action.

beginTime = new Date();
endTime = new Date();
diff = (endTime - beginTime) / 1000;