mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Give RateMeter::elapsedTime public visibility.
This commit is contained in:
2
timing.h
2
timing.h
@@ -141,6 +141,7 @@ class RateMeter {
|
|||||||
double getOverallRate(const struct timeval *now = NULL) const;
|
double getOverallRate(const struct timeval *now = NULL) const;
|
||||||
double getCurrentRate(const struct timeval *now = NULL, bool update = true);
|
double getCurrentRate(const struct timeval *now = NULL, bool update = true);
|
||||||
double getTotal(void) const;
|
double getTotal(void) const;
|
||||||
|
double elapsedTime(const struct timeval *now = NULL) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* How many seconds to look back when calculating the "current" rates. */
|
/* How many seconds to look back when calculating the "current" rates. */
|
||||||
@@ -156,7 +157,6 @@ class RateMeter {
|
|||||||
double total;
|
double total;
|
||||||
double current_rate;
|
double current_rate;
|
||||||
|
|
||||||
double elapsedTime(const struct timeval *now = NULL) const;
|
|
||||||
static bool isSet(const struct timeval *tv);
|
static bool isSet(const struct timeval *tv);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user