MATLAB: How should I run a simulation in simulink so that the simulation matches the real time clock

simulink

I have made a battery charging and discharging model wherein I have used a variable type solver.
But I need the simulation to run with the real time clock.
My problem is that if I give the simulation time as 100 s then the simulation gets completed much earlier.
Related Question