Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. auto start_time = std::chrono::high_resolution_clock::now();
  2. /*
  3. *some code here
  4. */
  5. auto finish_time = std::chrono::high_resolution_clock::now();
  6.  
  7. std::chrono::duration<double> time_duration = finish_time - start_time ;
  8.  
  9. list <std::chrono::duration<double>> dTimeList;
  10.  
  11. auto iter = dTimeList.begin();
  12. advance(iter, 0);
  13. *iter+= time_duration; //Error at this line
  14.  
  15. auto itr = dTimeList.begin();
  16. advance(itr, 0);
  17. std::chrono::duration<double> t = 0.0;
  18. dTimeList.insert(itr, t);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement