Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { timer } from '@toby.mosque/utils'
- const timestamp = function (date) {
- date = date || new Date()
- return JSON.stringify({ time: date.getTime(), iso: date.toISOString() })
- }
- export default async (context) => {
- console.log('start: ', timestamp())
- await timer.sleep(5000)
- console.log('end: ', timestamp())
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement