Skip to content

Instantly share code, notes, and snippets.

@mascot27
Created January 7, 2020 20:05
Show Gist options
  • Save mascot27/e88c75a29bbc1f73073e93bd8512a427 to your computer and use it in GitHub Desktop.
Save mascot27/e88c75a29bbc1f73073e93bd8512a427 to your computer and use it in GitHub Desktop.
typedef std::chrono::high_resolution_clock Clock;
typedef std::chrono::milliseconds milliseconds;
Clock::time_point tAvantChargement = Clock::now();
milliseconds ms = std::chrono::duration_cast<milliseconds>(tApresChargement - tAvantChargement);
std::cout << "temps de chargement du dictionnaire: " << ms.count() << "ms\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment