it's cool...but when I run this code using that class / struct
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
int main()
{
timer t;
for (int i = 0; i < 30; ++i)
{
while(1)
{
int time = t.millisecs_elapsed();
if (time == 100)
{
std::cout << "lol " << time << " " << i <<std::endl;
t.reset();
break;
}
}
}
}
it always reached less than 10
and one time it finished the code