44 public:
virtual ~
Timer();
47 public:
virtual void Start();
50 public:
virtual void Stop();
54 public:
bool GetRunning()
const;
58 public:
Time GetElapsed()
const;
64 public:
friend std::ostream &
operator<<(std::ostream &out,
75 private:
bool running;
Time GetElapsed() const
Get the elapsed time.
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:64
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:43