Skip to content

Instantly share code, notes, and snippets.

@kvalood
Last active August 26, 2022 06:13
Show Gist options
  • Save kvalood/3c162590a70dea195a0d854d0a72c95f to your computer and use it in GitHub Desktop.
Save kvalood/3c162590a70dea195a0d854d0a72c95f to your computer and use it in GitHub Desktop.
[JS] - Измерить время исполнения в микросекундах
var time = performance.now();
// your code
time = performance.now() - time;
console.log('Время выполнения = ', time);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment