Code snippet for performance.mark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn: async function(inputs, exits) { | |
performance.mark(‘start waiting’) | |
var wavesNGNPrice = await sails.helpers.fetch('https://waves-africa-api.herokuapp.com/ngn'); | |
performance.mark(‘end waiting’) | |
performance.mark(‘waiting period’, ‘start waiting’, ‘end waiting’) | |
exits.success(wavesNGNPrice) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment