Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #log #api #response #time
ADD COMMENT
Topic
Name
4+6 =