|
bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
|
Progress indicator which prints itself at regular time intervals. More...
#include <ConsoleProgress.hpp>
Public Member Functions | |
| ConsoleProgress (std::ostream &os, const std::chrono::milliseconds &interval=std::chrono::milliseconds{200}) | |
| Start a thread to print progress. | |
| ~ConsoleProgress () | |
| Notify and stop the printing thread. | |
| Public Member Functions inherited from Progress | |
| Progress (std::ostream &os) | |
| Constructor. | |
| template<typename F> | |
| void | log (F f) |
Additional Inherited Members | |
| Public Types inherited from Progress | |
| enum class | State { Normal , Canceled , EarlyExit } |
| Possible states of a long operation. More... | |
| Public Attributes inherited from Progress | |
| std::atomic< State > | state = State::Normal |
| State of the long operation. | |
| std::atomic< int > | done = 0 |
| Number of steps already done. | |
| std::atomic< int > | total = 0 |
| Total number of steps. | |
Progress indicator which prints itself at regular time intervals.