Schinko link said:wait 1000
number is in ms, so "wait 10000" would be 10 seconds
springfield link said:Code:static std::uint32_t iTime = 0; if (GetTickCount() - iTime > 1000) { //1sec has passed iTime = GetTickCount(); }
if you want more accurate use chrono