47 public:
Timer(
const Time &_maxTime,
const bool _countdown =
true);
56 public:
virtual void Stop();
70 public:
friend std::ostream &
operator<<(std::ostream &out,
81 private:
bool running;
85 private:
bool countdown;
94 private:
Time maxTime;
common
Definition FuelModelDatabase.hh:37
A Time class, can be used to hold wall- or sim-time.
Definition Time.hh:48
A timer class, used to time things in real world walltime.
Definition Timer.hh:39
void Reset()
Reset the timer.
Time GetElapsed() const
Get the elapsed time.
bool GetRunning() const
Returns true if the timer is running.
Timer()
Default constructor.
virtual ~Timer()
Destructor.
friend std::ostream & operator<<(std::ostream &out, const gazebo::common::Timer &t)
Stream operator friendly.
Definition Timer.hh:70
virtual void Start()
Start the timer.
Timer(const Time &_maxTime, const bool _countdown=true)
Countdown constructor.
virtual void Stop()
Stop the timer.
Forward declarations for the common classes.
Definition Animation.hh:27