Windows 10, not anymore.
Gives you 15-25 minutes, if you don't extend on time, it'll reboot.
And if you do, it gives you 3x a chance to extend. After that, you could try to discontinue the service with task manager, which usually gives you an additional 15 minutes, before it auto-restarts.