Problem with the chrono library
Re: Problem with the chrono library
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
Re: Problem with the chrono library
oh, you only needed the mark function and define std::chrono::steady_clock::time_point a in the constructor. that works now, thankschili 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().