Засекание времени (perfomance)

const starttime = perfomance.now()
//операції
const endttime = perfomance.now()
console.log(endttime -starttime)