Beginner Tutorial 17 Framertimer
Posted: August 28th, 2019, 2:44 pm
Hi everyone,
I have a problem to understand an error I made in tutorial 17. In Frametimer.cpp in the mark-function there is a line "last = steady_clock::now();" I know that "last" is a member variable declared by us but I accidentally wrote an "auto" in front off it, that caused a huge acceleration. Investigating it further by writting "steady_clock::time_point" instead of "auto" the acceleration remaind... What is happening there?
Thanks already
hannes
I have a problem to understand an error I made in tutorial 17. In Frametimer.cpp in the mark-function there is a line "last = steady_clock::now();" I know that "last" is a member variable declared by us but I accidentally wrote an "auto" in front off it, that caused a huge acceleration. Investigating it further by writting "steady_clock::time_point" instead of "auto" the acceleration remaind... What is happening there?
Thanks already
hannes