#Measuring CPU Time in an async method

2 messages · Page 1 of 1 (latest)

jovial rose
#
const time_before = Date.now();
const result = await fetch("https://google.com");
const time_after = Date.now();

const delta_time = time_after - time_before;
console.log(delta_time);

Does this answer your question?

rain hound
#

That's not CPU time