Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
MedProgress Class Reference

class to print progress of long process - multithreaded or not by time interval More...

#include <Logger.h>

Public Member Functions

 MedProgress (const string &title, int mprocess_cnt, int print_inter=30, int max_th=50)
 
void update ()
 update when completed process 1 item
 
void skip_update ()
 update action when skiping action - update job counter
 
void update_no_check ()
 update action when without checking if needs to print, faster
 

Data Fields

chrono::high_resolution_clock::time_point tm_start
 
chrono::high_resolution_clock::time_point tm_prog
 
int progress
 
int max_loop
 
int print_interval
 
string print_title
 
int max_threads
 
bool alway_print_total
 
int print_section
 
int print_level
 

Detailed Description

class to print progress of long process - multithreaded or not by time interval

Constructor & Destructor Documentation

◆ MedProgress()

MedProgress::MedProgress ( const string &  title,
int  mprocess_cnt,
int  print_inter = 30,
int  max_th = 50 
)
Parameters
titletitle to print in each time
mprocess_cntnumber of actions to preform in total
print_internumber of seconds between each print

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