ComPWA
Common Partial-Wave-Analysis Framework
ProgressBar.hpp
Go to the documentation of this file.
1
// Copyright (c) 2014 The ComPWA Team.
2
// This file is part of the ComPWA framework, check
3
// https://github.com/ComPWA/ComPWA/license.txt for details.
4
5
#ifndef PROGRESSBAR_HPP_
6
#define PROGRESSBAR_HPP_
7
8
#include <ctime>
9
10
namespace
ComPWA
{
11
12
class
ProgressBar
{
13
public
:
14
ProgressBar
();
15
16
ProgressBar
(std::size_t size,
int
update
= 1);
17
18
~ProgressBar
();
19
21
void
next
(
size_t
increment = 1);
22
23
protected
:
24
double
timeRemaining
();
25
double
timePassed
();
26
time_t
endTime
();
27
void
update
();
28
29
std::size_t
numEvents
;
30
int
updateInterval
;
31
bool
hasStarted
;
32
time_t
startTime
;
33
34
double
currentPercent
;
35
unsigned
int
currentEvent
;
36
double
lastUpdate
;
37
};
38
39
}
// namespace ComPWA
40
41
#endif
ComPWA::ProgressBar
Definition:
ProgressBar.hpp:12
ComPWA
Definition:
Efficiency.cpp:7
ComPWA::ProgressBar::numEvents
std::size_t numEvents
Definition:
ProgressBar.hpp:29
ComPWA::ProgressBar::endTime
time_t endTime()
Definition:
ProgressBar.cpp:81
ComPWA::ProgressBar::update
void update()
Definition:
ProgressBar.cpp:42
ComPWA::ProgressBar::~ProgressBar
~ProgressBar()
Definition:
ProgressBar.cpp:21
ComPWA::ProgressBar::timePassed
double timePassed()
Definition:
ProgressBar.cpp:75
ComPWA::ProgressBar::hasStarted
bool hasStarted
Definition:
ProgressBar.hpp:31
ComPWA::ProgressBar::lastUpdate
double lastUpdate
Definition:
ProgressBar.hpp:36
ComPWA::ProgressBar::ProgressBar
ProgressBar()
Definition:
ProgressBar.cpp:12
ComPWA::ProgressBar::currentPercent
double currentPercent
Definition:
ProgressBar.hpp:34
ComPWA::ProgressBar::startTime
time_t startTime
Definition:
ProgressBar.hpp:32
ComPWA::ProgressBar::updateInterval
int updateInterval
Definition:
ProgressBar.hpp:30
ComPWA::ProgressBar::timeRemaining
double timeRemaining()
Definition:
ProgressBar.cpp:70
ComPWA::ProgressBar::next
void next(size_t increment=1)
indicate the next step in process
Definition:
ProgressBar.cpp:23
ComPWA::ProgressBar::currentEvent
unsigned int currentEvent
Definition:
ProgressBar.hpp:35
Core
ProgressBar.hpp
Generated on Mon Jun 22 2020 13:03:33 for ComPWA by
1.8.13