Static GitHub Issues

[2357] Server Render Page - log execute time

prev: change url query without changing page
next: Error in next_tick.js:228 process._tickDomainCallback

Hello! I use nuxt rc11 and use server express module

I need log execute time

I use this code

app.use(function (req, res, next) {
    console.log('req', req.url)

    nuxt.render(req, res, next)
})

But i want use this code

app.use(function (req, res, next) {
    console.log('req', req.url)

    var startExecute = new Date()

    nuxt.render(req, res, next)
        .then(r => {

            var endExecute = new Date()

            console.log('execute', endExecute - startExecute)
        })
})

But function nuxt.render() not return promise

Please help me!!!!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2055">#c2055</a>)</em></sub></div>