Created
October 11, 2015 04:53
-
-
Save naotokui/603aa18fee584232363a to your computer and use it in GitHub Desktop.
time elapsed time in c++
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
auto start = std::chrono::steady_clock::now(); | |
// some task | |
auto end = std::chrono::steady_clock::now(); | |
std::cout << "Elapsed time " << double((end-start).count())/double(std::chrono::steady_clock::period::den) << "s" << std::endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment