I will answer it for myself. gzstats is the right command for it
Originally posted by DongDong with karma: 46 on 2014-11-15
This answer was ACCEPTED on the original site
Post score: 3
Original comments
Comment by niall on 2015-09-11:
I'm trying to do the same thing but was looking for a way of doing it with a plugin. I found GetRealTime() in a modelplugin but can't find the realtime factor. How did you end up doing it exactly?
Comment by nkoenig on 2016-01-27:
You can subscribe to the /gazebo/default/world_stats
topic.