Hi,
it was time i put my problem with calculating time of function
claculate time of function
after progress with the code the forum member
Elysia give me this instruction to resolve the problem of "0.00" as result
Code:
namespace stdc = std::chrono;
auto start = stdc::high_resolution_clock::now();
constexpr int LoopCount = 1000000;
for (int i = 0; i < LoopCount; i++)
{
// My code here
}
auto end = stdc::high_resolution_clock::now();
std::cout << stdc::duration_cast<stdc::milliseconds>((end - start) / LoopCount).count() << "\n";
Now, i am using Visual c++2010 , that don't have "chrono" as std
is there another alternative of "chrono" and "constexpr"