Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- memoryS = getPMUsed();
- clock_t start = clock();
- list.addSong(v, n);
- clock_t end = clock();
- memoryE = getPMUsed();
- memoryU = memoryE - memoryS;
- duration = calTime(start, end);
- cout << "Memory allocated: " << memoryU << "KB" << endl;
- cout << "Time taken: " << duration << " seconds" << endl;
- cout << endl;
- addData(option - 1, n, choice, duration, memoryU);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement