Skip to content

Instantly share code, notes, and snippets.

@yashihei
Last active December 29, 2015 12:49
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 yashihei/7672634 to your computer and use it in GitHub Desktop.
Save yashihei/7672634 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <chrono>
using namespace std;
int main()
{
auto begin = chrono::high_resolution_clock::now();
//計測したい処理
auto end = chrono::high_resolution_clock::now();
auto count = chrono::duration_cast<chrono::milliseconds>(end - begin).count();
cout << count << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment