Information:

Environment

  • Dynatrace Portal
  • Dynatrace Recorder
Symptoms

How to calculate the time difference in JavaScript.

Solution

Use the following code to calculate the time difference in JavaScript:


beginTime = new Date();

endTime = new Date();

diff = (endTime- beginTime) / 1000;

 

 

 

 

  • No labels