Skip to content

Instantly share code, notes, and snippets.

@mascot27
Created January 7, 2020 20:05
Show Gist options
  • Select an option

  • Save mascot27/e88c75a29bbc1f73073e93bd8512a427 to your computer and use it in GitHub Desktop.

Select an option

Save mascot27/e88c75a29bbc1f73073e93bd8512a427 to your computer and use it in GitHub Desktop.

Revisions

  1. mascot27 created this gist Jan 7, 2020.
    9 changes: 9 additions & 0 deletions timeDifference.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@

    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";