Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

console.time js

console.time();
for (i = 0; i < 100000; i++) {
  // some code
}
console.timeEnd();
Comment

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript Find the number of days between two days 
Javascript :: req.url 
Javascript :: fs append 
Javascript :: string.find javascript 
Javascript :: how to generate random string in javascript 
Javascript :: chart js x axis start at 0 
Javascript :: how to get user input in javascript 
Javascript :: js check window active 
Javascript :: new create react app 
Javascript :: angular goto top of page 
Javascript :: ant design not working in react js 
Javascript :: jquery get URL slug 
Javascript :: javascript go to div id 
Javascript :: org.json.JSONException: End of input at character 0 of 
Javascript :: javascript download csv 
Javascript :: react js materilize 
Javascript :: how to check checked checkbox in jquery 
Javascript :: npm redux toolkit 
Javascript :: node js query get :id param 
Javascript :: css div at bottom of div 
Javascript :: .env file node js 
Javascript :: javascript replace text within dom 
Javascript :: nodejs request api 
Javascript :: chartjs disable animation 
Javascript :: get last item in array 
Javascript :: how to get value in formgroup in angular 
Javascript :: props type 
Javascript :: bootstrap prevent dropdown from closing on click 
Javascript :: check if type is blob javascript 
Javascript :: commonjs vs es6 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =