pumpTimers
Runs the timers a script set that are due, and answers how long to wait before the next one, or null when none is waiting. nowMillis is the viewer's frame time. A handler may measure its timers on a clock of its own, as PdfScriptRunner does.
A viewer calls this on a frame while hasTimers is true, and waits for as long as the answer says before it calls again.