fetch log api response time code example
Example: fetch log api response time
console.time("timer1");
fetch('https://jsonplaceholder.typicode.com/posts/1')
.then((res) => {
return res.json();
})
.then((data) => {
console.timeEnd("timer1");