Problem with the chrono library

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Problem with the chrono library

Post by chili » February 12th, 2017, 8:08 am

That will work, but it is not the best solution IMO. Take a closer look at how I do it in the chrono video. I don't put code in Game::Go, just one call to ft.Mark() in the same place every frame, in UpdateModel().
Chili

Ariphael
Posts: 7
Joined: February 11th, 2017, 11:20 am

Re: Problem with the chrono library

Post by Ariphael » February 12th, 2017, 12:00 pm

chili wrote:That will work, but it is not the best solution IMO. Take a closer look at how I do it in the chrono video. I don't put code in Game::Go, just one call to ft.Mark() in the same place every frame, in UpdateModel().
oh, you only needed the mark function and define std::chrono::steady_clock::time_point a in the constructor. that works now, thanks

Post Reply