Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 6 - Display stats 10 times per second. MVP Complete
We use Arc and AtomicUsize for thread safety and make Stats struct own the incrementing of its lines and bytes. The minimum viable product is complete. We can put this program in between pipes and stats will spew to console nicely without interupting the final data output.
- Loading branch information
Scott Pierce
committed
Mar 17, 2018
1 parent
d2c5ef1
commit e0b51a9
Showing
1 changed file
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters