5 ms·
Well, yes, that's by design, as std::cout is buffered. If you want to have visible debug information, you can either: - call << std::flush; - use << std::end
by fransje26 3y ago
Well, yes, that's by design, as std::cout is buffered.
If you want to have visible debug information, you can either:
- call << std::flush;
- use << std::endl; which is basically equivalent to << "\n" << std::flush;
- use std::cerr instead of std::cout, which is unbuffered.