Sometimes c++ plays me big time. I really can\'t think of why this does/doesn\'t work and I\'d be happy if any of you knew.
I call this function once every second on a t
This has nothing to do with threading or C++. The OS is buffering your output, and the \n implicitly flushes the buffer when stdout is a console. Call fflush(stdout) after the loop if you want every call to show its output immediately.
\n
fflush(stdout)