Skip to content

Instantly share code, notes, and snippets.

@jnst
Created July 26, 2016 08:44
Show Gist options
  • Save jnst/798546a7879fb7ced083fb51be888b5a to your computer and use it in GitHub Desktop.
Save jnst/798546a7879fb7ced083fb51be888b5a to your computer and use it in GitHub Desktop.
C++11で処理速度の計測
auto start = std::chrono::system_clock::now();
// -----
// 処理
// -----
CCLOG("1: %lld マイクロ秒", std::chrono::duration_cast<chrono::microseconds>(chrono::system_clock::now() - start).count());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment