Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tablica<int>*tb = new Tablica<int>();
- const int potega = 7;
- const int p = pow(10, potega);
- clock_t gg = clock();
- double maks_czas= 0.0;
- //srand(time(NULL));
- //clock_t end, begin;
- //begin = clock();
- for (int k = 0; k < p; k++)
- {
- int a = rand() % 1000;
- clock_t gg_e = clock();
- tb->dodaj(a);
- clock_t gg_e1 = clock();
- double czas_elementu = time(gg_e1, gg_e);
- if (czas_elementu > maks_czas)
- {
- cout<<
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement