How to Add Battery Plug-in to Ardupilot Gazbo IRIS Model

Hello.

I would like to add a battery plug-in to the iris model provided by Ardupilot gazebo, and implement the measurement of flight time according to the battery capacity in sitl.

I’ve tried several times, including how to use the battery plug-in as an example,
Flight time is not implemented in sitl.

Please give me an idea of what to do.

Thank you.

@rhys