All pastes #829146 Raw Edit

Something

public text v1 · immutable
#829146 ·published 2007-12-22 23:09 UTC
rendered paste body
#include <cstdlib>
#include <time.h>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int liczba;
    vector<int> v;
    clock_t czas = clock(); 
     for (int i=0; i<1000000; i++)
     v.insert(v.begin(), liczba);
     printf("Czas %f\n", (float)(clock() - czas) / CLOCKS_PER_SEC);
     
     
     list<int> l;
     clock_t czas2 = clock(); 
     for (int i=0; i<1000000; i++)
     l.insert(l.begin(), liczba);
     printf("Czas %f\n", (float)(clock() - czas2) / CLOCKS_PER_SEC);
    system("PAUSE");
    return EXIT_SUCCESS;
}