Skip to content

Instantly share code, notes, and snippets.

@kidapu
Last active October 4, 2015 06:10
Show Gist options
  • Save kidapu/b8acf22522c90dc18a87 to your computer and use it in GitHub Desktop.
Save kidapu/b8acf22522c90dc18a87 to your computer and use it in GitHub Desktop.
C++ time measure
clock_t clockStart, clockEnd;
clockStart = clock();
// ... 処理 ...
clockEnd = clock();
cout << "duration = " << (double)(clockEnd - clockStart) / CLOCKS_PER_SEC << "sec.\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment