Optimize output panel by writing less often
Optimize output panel by writing less often

Instead of writing sync on 'write', write on 'flush' and 'close'.

randy3k/UnitTesting,randy3k/UnitTesting,randy3k/UnitTesting,randy3k/UnitTesting