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,
81 private:
bool running;
85 private:
bool countdown;
94 private:
Time maxTime;
Time GetElapsed() const
Get the elapsed time.
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
A timer class, used to time things in real world walltime.
Definition: Timer.hh:38
GAZEBO_VISIBLE void stop()
friend std::ostream & operator<<(std::ostream &out, const gazebo::common::Timer &t)
Stream operator friendly.
Definition: Timer.hh:70
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:39