Skip to content

Instantly share code, notes, and snippets.

@SanichKotikov
Created July 6, 2019 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SanichKotikov/cda7f4cb34440aedf132c5227caf36c5 to your computer and use it in GitHub Desktop.
Save SanichKotikov/cda7f4cb34440aedf132c5227caf36c5 to your computer and use it in GitHub Desktop.
Timing API
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