Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

console.time in javascript

// console.time
// This method is used to measure time. For example,
// checking how many seconds it went to complete the x task?


console.time("test");
setTimeout(() => {
    console.timeEnd("test");
}, 1000);


// This will give us the following result:

// test: 1.000s
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
2+1 =