3 ms·
With some exceptions. In C++ infinite loops doing IO, accessing volatile variables or atomics are not undefined. Hence for(;;) std::this_thread::sleep_for(1s)
by AstralStorm 4y ago
With some exceptions. In C++ infinite loops doing IO, accessing volatile variables or atomics are not undefined.
Hence for(;;) std::this_thread::sleep_for(1s) is not UB.
C is even more lenient.