Introduction - If you have any usage issues, please Google them yourself
Experiment two synchronous and asynchronous write efficiency set input buffer need to know the length of the input file. In addition to using the system call stat, the easier way is to use the return value of lseek to get the length of the file. Per one calculation to write the file time to set the size of the output buffer, it should be called before you start writing times (), record the start time, then the entire input buffer are copied to the output file, and then call times () call times (twice) time interval, is the limitations of a given size of the output buffer, write the time-consuming to copy the entire input file