Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. memoryS = getPMUsed();
  2. clock_t start = clock();
  3. list.addSong(v, n);
  4. clock_t end = clock();
  5. memoryE = getPMUsed();
  6. memoryU = memoryE - memoryS;
  7. duration = calTime(start, end);
  8. cout << "Memory allocated: " << memoryU << "KB" << endl;
  9. cout << "Time taken: " << duration << " seconds" << endl;
  10. cout << endl;
  11. addData(option - 1, n, choice, duration, memoryU);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement