Yes, you can retrieve runtime energy use at each time-step (and many other variables like temperatures), as described here (via output variables and/or output meters - depends on what you're after). Ensure reporting frequencies are "timestep". This API method may be what you're after.