[guided]We now construct the delay function rather than invoking it. The difficulty is that $h$ will define the final language, while the construction of $h$ must still be able to test finite pieces of that language. The way out is to use only a finite approximation at each length and to make sure all undefined future values of $h$ are irrelevant to the current test.
Fix an NP verifier $V_A$ for $A$ and a constant $c \geq 1$ such that $x \in A$ exactly when some certificate $w \in \{0,1\}^{\leq |x|^c}$ makes $V_A(x,w)$ accept within time at most $|x|^c+c$. Define the map $T_A: \mathbb{N}\to\mathbb{N}$ so that $T_A(r)$ is the deterministic time required to decide $A$ on all strings of length at most $r$ by trying every certificate. There is a constant $C_A \geq 1$ such that
\begin{align*}
T_A(r) \leq 2^{C_A r^c}.
\end{align*}
Choose a constant $C \geq C_A$ large enough that, for every $r \in \mathbb{N}$,
\begin{align*}
2^{r+1}2^{C_A(r+1)^c}\leq 2^{C(r+1)^c}.
\end{align*}
Define
\begin{align*}
s(n) := \max\{r \in \mathbb{N} : 2^{C(r+1)^c}(r+1)^{r+1} \leq n\},
\end{align*}
with $s(n)=0$ if no positive $r$ satisfies the bound. This threshold tends to infinity, but slowly enough that exhaustive decisions of $A$ on strings of length at most $s(n)$ and the relevant bounded simulations are polynomial in $n$.
We define finite maps $h_n: \{0,1,\dots,n\}\to\mathbb{N}$ recursively. Start with $h_0(0)=0$. Suppose $h_{n-1}$ is already fixed and let $m=h_{n-1}(n-1)$. Before deciding whether to move past requirement $m$, form the temporary extension $h_{n,0}$ by keeping all old values and setting $h_{n,0}(n)=m$. For any finite map $g: \{0,1,\dots,n\}\to\mathbb{N}$, define
\begin{align*}
L_g := \{x \in \{0,1\}^{\leq s(n)} : x \in A \text{ and } g(|x|) \text{ is even}\}.
\end{align*}
This definition is meaningful because $s(n)\leq n$, so $g(|x|)$ is defined for every string under consideration. It also avoids circularity: at stage $n$, the construction only asks about lengths at most $s(n)$, where $h_{n,0}$ has already assigned a value.
If $m>s(n)$, we pause and set $h_n(n)=m$. This extra delay is essential for the runtime estimate: no machine of index larger than $s(n)$ is simulated at stage $n$.
If $m\leq s(n)$ and $m=2i$, the current requirement is to defeat the decider $M_i$. We search over all $x \in \{0,1\}^{\leq s(n)}$ and ask whether
\begin{align*}
M_i(x) \neq \mathbb{1}_{L_{h_{n,0}}}(x).
\end{align*}
If such an $x$ exists, set $h_n(n)=m+1$; otherwise set $h_n(n)=m$. If $m\leq s(n)$ and $m=2i+1$, the current requirement is to defeat the transducer $R_i$ as a many-one reduction from $A$ to the delayed language. We search over all $x \in \{0,1\}^{\leq s(n)}$ for which $R_i(x)$ halts within its clock and $|R_i(x)|\leq s(n)$, and we ask whether
\begin{align*}
\mathbb{1}_A(x) \neq \mathbb{1}_{L_{h_{n,0}}}(R_i(x)).
\end{align*}
If such an $x$ exists, set $h_n(n)=m+1$; otherwise set $h_n(n)=m$. In all cases, all older values are preserved: $h_n(k)=h_{n-1}(k)$ for $k<n$.
Finally set $h(n)=h_n(n)$. This gives a total nondecreasing function $h: \mathbb{N}\to\mathbb{N}$, increasing by at most one at a time. The construction is polynomial-time computable because, to compute $h(n)$, one repeats the finite recursion through length $n$, and at each intermediate length $k$ the search is restricted to strings of length at most $s(k)$. If $h(k-1)>s(k)$, the stage only copies the previous value and no machine is simulated. Otherwise the current requirement has index at most $s(k)$, so on inputs of length at most $s(k)$ every simulated clock is bounded by $(s(k)+1)^{s(k)+1}+s(k)+1$. At stage $k$ there are at most $2^{s(k)+1}$ tested inputs. The construction decides $A$ only for strings of length at most $s(k)$, costing at most $2^{C_A(s(k)+1)^c}$ by exhaustive certificate search. The condition $|R_i(x)|\leq s(k)$ is essential here: it ensures that evaluating $\mathbb{1}_{L_{h_{k,0}}}(R_i(x))$ never asks for membership in $A$ at a length larger than $s(k)$.
Therefore the cost of stage $k$ is bounded by a constant multiple of
\begin{align*}
2^{s(k)+1} 2^{C(s(k)+1)^c}(s(k)+1)^{s(k)+1}.
\end{align*}
By the initial choice of the fixed constant $C$, the factor $2^{s(k)+1}$ is included in the exponential term, and the defining inequality gives that this displayed quantity is at most $k$. Thus every stage costs at most a constant multiple of $k$, so the total cost through stage $n$ is bounded by a constant multiple of $\sum_{k=1}^n k$, hence by a polynomial in $n$. Thus the delayed control function exists, is explicitly defined, and is polynomial-time computable.[/guided]