Go to the SVN repository for this file.
1 #ifndef CONNECT___NCBI_MISC__HPP 2 #define CONNECT___NCBI_MISC__HPP 58 typedefpair<Uint8, double>
TMark;
75: kMinSpan(minspan), kMaxSpan(minspan > maxspan ?
76minspan + maxspan : maxspan),
78m_Rate(0.0), m_Size(0)
88 Uint8GetPos (
void)
const;
91 doubleGetTime(
void)
const;
98 voidMark(
Uint8pos,
doubletime);
104 doubleGetRate(
void)
const;
109 doubleGetPace(
void)
const;
114 doubleGetETA (
void)
const;
119 doubleGetTimeRemaining(
void)
const;
156? double(
m_Data.front().first) /
m_Data.front().second
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CRateMonitor(double minspan=0.5, double maxspan=10.0, double weight=0.5, double precision=0.95)
Monitor position progressing in time, calculate speed and estimate time to complete the job (when the...
double GetTime(void) const
Get current time (time 0.0 when job starts)
Uint8 GetSize(void) const
Get size previously set.
pair< Uint8, double > TMark
Uint8 GetPos(void) const
Get current progress position (position 0 when job starts)
Uint8 m_Size
Total size of job to be performed.
void SetSize(Uint8 size)
Set size of the anticipated job, clear all prior measurements.
list< TMark > m_Data
Measurements as submitted by Mark()
double GetPace(void) const
How fast the average pace has been so far, in positions per time unit.
double m_Rate
Cached rate from last calculation.
#define NCBI_XCONNECT_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
The NCBI C++/STL use hints.
Defines Limits for the types used in NCBI C/C++ toolkit.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4