47 public:
Timer(
const Time &_maxTime,
const bool _countdown =
true);
50 public:
virtual ~
Timer();
53 public:
virtual void Start();
56 public:
virtual void Stop();
60 public:
bool GetRunning()
const;
64 public:
Time GetElapsed()
const;
70 public:
friend std::ostream &
operator<<(std::ostream &out,
85 private:
bool countdown;
94 private:
Time maxTime;
Time GetElapsed() const
Get the elapsed time.
Forward declarations for the common classes.
Definition: Animation.hh:26
A timer class, used to time things in real world walltime.
Definition: Timer.hh:38
common
Definition: FuelModelDatabase.hh:37
friend std::ostream & operator<<(std::ostream &out, const gazebo::common::Timer &t)
Stream operator friendly.
Definition: Timer.hh:70
GAZEBO_VISIBLE bool running()
Return true if the manager is running.
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:47