Get the number of cpu seconds according to the LUA Sandbox.
This method can be used to terminate gracefully before a timeout.