Created
July 6, 2019 08:59
-
-
Save SanichKotikov/cda7f4cb34440aedf132c5227caf36c5 to your computer and use it in GitHub Desktop.
Timing API
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
performance.mark('custom_start'); | |
// do some staff here... | |
performance.mark('custom_end'); | |
// https://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface | |
performance.measure('custom', 'custom_start', 'custom_end'); | |
performance.clearMeasures('custom'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment