Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto start_time = std::chrono::high_resolution_clock::now();
- /*
- *some code here
- */
- auto finish_time = std::chrono::high_resolution_clock::now();
- std::chrono::duration<double> time_duration = finish_time - start_time ;
- list <std::chrono::duration<double>> dTimeList;
- auto iter = dTimeList.begin();
- advance(iter, 0);
- *iter+= time_duration; //Error at this line
- auto itr = dTimeList.begin();
- advance(itr, 0);
- std::chrono::duration<double> t = 0.0;
- dTimeList.insert(itr, t);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement