Skip to content

Instantly share code, notes, and snippets.

@gchavez2
Created February 26, 2018 19:06
Show Gist options
  • Save gchavez2/a73163519b7cf870311e9f09a9c69e59 to your computer and use it in GitHub Desktop.
Save gchavez2/a73163519b7cf870311e9f09a9c69e59 to your computer and use it in GitHub Desktop.
#include "misc/TaskTimer.hpp"
{
timer.start();
// CODE here
if (!mpi_rank())
cout << "# time = " << timer.elapsed() << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment