Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 1.1 KB

README.md

File metadata and controls

22 lines (21 loc) · 1.1 KB

Buffered Print

Implemention of buffered printing messages in stdout.

About project

Class bufPrint is implement buffered printing messages in stdout. Variable kBufferSize is contain size of buffer. This class is located in files buf_print.hpp and buf_print.cpp.
The test program shows the advantage of buffered print over common print. And this program is print difference of working time buffered print with common print in seconds. Test program is located in file main.cpp. Exmaple of output this program.

Time printf:   0.006571
Time bufPrint: 0.005589
bufPrint is faster printf on 0.000982 seconds.