Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:zap: Better elapsed request time calculation
liyasthomas0fdb4197a180
diff --git a/pages/index.vue b/pages/index.vueindex c62788f84..f5e3a0b5c 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -767,7 +767,7 @@headers = headersObject;try {- const startTime = new Date().getTime();+ const startTime = Date.now();const payload = await this.$axios({method: this.method,url: this.url + this.pathName + this.queryString,@@ -776,8 +776,7 @@data: requestBody ? requestBody.toString() : null});- const endTime = new Date().getTime();- const duration = endTime - startTime;+ const duration = Date.now() - startTime;this.$toast.info(`Finished in ${duration}ms`, {icon: 'done'});