Skip to content

Instantly share code, notes, and snippets.

@fabiogaluppo
Last active August 26, 2015 01:00
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 fabiogaluppo/5ee7f21996fbc364506e to your computer and use it in GitHub Desktop.
Save fabiogaluppo/5ee7f21996fbc364506e to your computer and use it in GitHub Desktop.
stop_watch sw;
...
auto m = sw.elapsed_ms().count();
cout << "Elapsed time is " << m << " milliseconds.\n";
sw.restart()
...
m = sw.elapsed_us().count();
cout << "Elapsed time is " << m << " microseconds.\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment