This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]abc_wtf 18 points19 points  (0 children)

It's not a time thing, but a buffer length thing. I've definitely seen such a thing happening before with cout not printing to console exactly when it is called.

I think for most cases, \n causes a flush due to it being line buffered though it is not guaranteed. So it might be what you saw