bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
ConsoleProgress Class Reference

Progress indicator which prints itself at regular time intervals. More...

#include <ConsoleProgress.hpp>

Inheritance diagram for ConsoleProgress:
Progress

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< Statestate = 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.

Detailed Description

Progress indicator which prints itself at regular time intervals.


The documentation for this class was generated from the following file: