#include  <chrono>

using std::cout;
using namespace std::chrono;

int main()
{
        auto t1 = high_resolution_clock::now();

        for (int i = 0; i < 10000 ; i++)
        {
                if (i % 1000 == 0){
                    //printf("%d\n", i);
                }
                testList(i);
        }

        auto t2 = high_resolution_clock::now();
        auto difference = duration_cast<milliseconds>(t2 - t1);
        cout << difference.count() << std::endl ;
        return 0;
}

 

arrow
arrow
    全站熱搜

    hedgezzz 發表在 痞客邦 留言(0) 人氣()