 |
ImageD
v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
|
Go to the documentation of this file.
9 #ifndef D_FINISHTIMEPROGNOSIS_H
10 #define D_FINISHTIMEPROGNOSIS_H
17 #include <QElapsedTimer>
20 #include <QProgressBar>
40 void set_ProgressBar(QProgressBar *bar);
43 void set_StepCount(
size_t step_count);
44 void start(
size_t step_count);
45 void start(
size_t step_count, qint64 typical_step_duration_ms);
48 void quit(QString QS_reason_for_qutiing);
52 bool state_bar_set =
false;
53 bool state_step_max_set =
false;
54 bool state_running =
false;
55 bool state_run_1st_time =
true;
57 QProgressBar *pProgressBar;
60 size_t StepsExecuted = 0;
63 QDateTime Time_Running;
64 QDateTime Time_FinishPrognosis;
65 QElapsedTimer Timer_Measurement;
67 qint64 DefaultStepLength = 0;
70 #endif // D_FINISHTIMEPROGNOSIS_H
void set_ProgressBar(QProgressBar *bar)
Definition: d_finishtimeprognosis.cpp:39
void end()
D_FinishTimePrognosis::end successfully end the measurment.
Definition: d_finishtimeprognosis.cpp:162
The D_FinishTimePrognosis class measures the time of processing steps and prognoses the finish time.
Definition: d_finishtimeprognosis.h:30
void step()
D_FinishTimePrognosis::step call this when one of X steps is done.
Definition: d_finishtimeprognosis.cpp:122
void quit(QString QS_reason_for_qutiing)
D_FinishTimePrognosis::quit call(ed) when something causes the processing to stop running.
Definition: d_finishtimeprognosis.cpp:151
void set_StepCount(size_t step_count)
Definition: d_finishtimeprognosis.cpp:58
void start()
D_FinishTimePrognosis::start start time measurement.
Definition: d_finishtimeprognosis.cpp:80
D_FinishTimePrognosis()
Definition: d_finishtimeprognosis.cpp:11