int main() { // 시간제어테스트 int time = 0; while (true) { time++; if (time % 100000000 == 0) { cout << "check" << "\\n"; // int overflow 고려 time = 0; } } }