Skip to content

Instantly share code, notes, and snippets.

@motonacciu
Created July 27, 2012 21:00
Show Gist options
  • Select an option

  • Save motonacciu/3190459 to your computer and use it in GitHub Desktop.

Select an option

Save motonacciu/3190459 to your computer and use it in GitHub Desktop.
auto start = std::chrono::system_clock::now();
for(size_t i = 0, size=vec.size(); i!=size; ++i) {
vec[i] = i*(i-1)*4*(i+1);
}
auto end = std::chrono::system_clock::now();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment