Last active
October 4, 2015 06:10
-
-
Save kidapu/b8acf22522c90dc18a87 to your computer and use it in GitHub Desktop.
C++ time measure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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