Created
November 24, 2020 22:56
-
-
Save DominusKelvin/35457d48a80f9495443467c5eb3626b2 to your computer and use it in GitHub Desktop.
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