function sleep (time = 1000) {
return new Promise(resolve => setTimeout(resolve, time))
}
async function waitForMe (time = 2000) {
console.log('entered', new Date)
await sleep(1000)
console.log('exiting', new Date)
return new Date
}
console.log('ret is', await waitForMe())