#include <iostream>
#include <chrono>
 
int main()
{
    ulong k = 0;
    auto start = std::chrono::high_resolution_clock::now();
    for( uint i = 0; i < 1000000; ++i )
    {
        k++;
    }
    auto diff = std::chrono::high_resolution_clock::now() - start;
    auto t1 = std::chrono::duration_cast<std::chrono::nanoseconds>(diff);
    std::cout << "k = " << k << std::endl;
    
    k = 0;
    start = std::chrono::high_resolution_clock::now();
    for( uint i = 0; i < 1000; ++i )
    {
        for( uint j = 0; j < 1000; ++j )
        {
            k++;
        }
    }
    diff = std::chrono::high_resolution_clock::now() - start;
    auto t2 = std::chrono::duration_cast<std::chrono::nanoseconds>(diff);
    std::cout << "k = " << k << std::endl;
   
    std::cout << "Simple: " << t1.count() << std::endl;
    std::cout << "Double: " << t2.count() << std::endl;
}