summaryrefslogtreecommitdiff
path: root/src/SpeedCalc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SpeedCalc.h')
-rw-r--r--src/SpeedCalc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/SpeedCalc.h b/src/SpeedCalc.h
index ca47833f..99f4fb00 100644
--- a/src/SpeedCalc.h
+++ b/src/SpeedCalc.h
@@ -52,6 +52,7 @@ private:
int maxSpeed_;
void removeStaleTimeSlot(const Timer& now);
+
public:
SpeedCalc();
@@ -60,9 +61,9 @@ public:
*/
int calculateSpeed();
- int getMaxSpeed() const {
- return maxSpeed_;
- }
+ int calculateNewestSpeed(int seconds);
+
+ int getMaxSpeed() const { return maxSpeed_; }
int calculateAvgSpeed() const;