Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

store console.timeEnd in variable js

//Not quite using console.time and console.timeEnd, but it will work
//Doesn't log it to console
var start = window.performance.now();
...
var end = window.performance.now();
var time = end - start;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #variable #js
ADD COMMENT
Topic
Name
7+4 =