Warning: No such label 'RESPONSE TIME' for console.timeEnd() Warning: No such label 'RESPONSE TIME' for console.timeEnd() express express

Warning: No such label 'RESPONSE TIME' for console.timeEnd()


Your speculation is correct, you should have a unique label name for every api call.Assuming every request has a unique identifier stored in req.id you can use the following:

console.time(`RESPONSE TIME request ${req.id}`)// await api callconsole.timeEnd(`RESPONSE TIME request ${req.id}`)