You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
constexpr int LOOP_COUNT = 5000000;
|
|
|
|
void FunctionRecursive(int loop) {
|
|
for (volatile int i = 0; i < LOOP_COUNT; ++i) {
|
|
}
|
|
if (loop > 0) {
|
|
FunctionRecursive(loop - 1);
|
|
}
|
|
for (volatile int i = 0; i < LOOP_COUNT; ++i) {
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
while (true) {
|
|
FunctionRecursive(10);
|
|
}
|
|
return 0;
|
|
}
|