According to this article [1] you have 15-60 seconds until the electric windows stop working. Also, on most cars you can detatch the headrests and use the metal at the bottom to break the windows.
1. https://rac.com.au/car-motoring/info/unexpected-car-emergenc...