Files
2024-12-04 17:15:04 +01:00

24 lines
464 B
C++
Executable File

#ifndef TIMER_H
#define TIMER_H
#include <iostream>
// class to keep track of the "simulation time" (i.e. number of processed events * Activity)
class Timer {
public:
// Constructor; initializes time to 0
Timer();
// getter for the time
double time() const;
// increase the time by time_s (time in s)
void increaseTimestep(double time_s);
// set time to time_s
void setTime(double time_s);
private:
double current_time_s_;
};
#endif /* TIMER_H */