i.e. i'm using std::this_thread::sleep_for(std::chrono::milliseconds(10));
in a program loop.
If I have a variable that gets incremented on this loop to show seconds elapsed, what do I need to increment by?
i.e. float x = 0;
for each step:
x += 0.01
I've tried 0.1, 0.01, 0.001, but they all seem either too fast or too slow.