time the executing time for sync/async function
execution function
the consumed milliseconds of the function execution
5.19.0
const consumedMSeconds = await timeIt(async () => { // some async operations}) Copy
const consumedMSeconds = await timeIt(async () => { // some async operations})
time the executing time for sync/async function