First you have to enable the developer options. To do that go to settings - about phone. Scroll down and you have to tap 7-10 times on the build number until a little menu pops up.
After that you can change the runtime in the developer options. Make sure you have enough battery for the process. It can take a while to complete