I am getting response time for an API but need to convert it to seconds and display. Can someone please help me on this?
Code:
var time = pm.response.responseTime
pm.test("Response time is less than 10 seconds. Time taken is: "+ time + ' ms', function() {
pm.expect(pm.response.responseTime, "Response time was longer than 10 seconds").to.be.below(10000);
});
As of now time is displayed in milli seconds and want it to be displayed in seconds. Or I can do it with a simple math as below?