I have several questions about new
header in C++ 11. Using Windows 7, Visual Studio 2012.
Looking at the example http://en.cppreference.com/w
1) I'm fairly certain the highest resolution you can get is to use std::chrono::high_resolution_clock
and then don't do any duration casting:
int elapsed_ticks = (end-start).count();
2) Change the argument of duration_cast to something like nanoseconds
:
int elapsed_seconds = std::chrono::duration_cast
(end-start).count();