Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Count time in javascipt

const start = Date.now();

await functionToBeMeasured();

const end = Date.now();
console.log(`Execution time: ${end - start} ms`);
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Count #time #javascipt
ADD COMMENT
Topic
Name
6+3 =