There is no official definition of market depth (this is only a qualitative concept), only the cost of a roundtrip for a given number of shares of contracts. Take $V$ shares, on average, knowing the shape of the book at time $t$, what is the cost of buying and selling them immediately? You obtain a cost $C(V,t)$. Then you need to average or to choose an adequate $V$ or an adequate $t$.
- for $t$ there is no reason to choose a specific time, but you can either average on seconds ${\cal T}=(t_1, \ldots, t_K)$ or according to the intraday volume seasonality ${\cal B}=(\tau_1, \ldots,\tau_N)$ (more volume the morning and at the end of the day)
- for $V$ you can take only a typical volume of interest for you (if you know you will always split your metaorder in chunks of a given size $V^*$)
- otherwise you can use the average trade size of a day $\bar V$,
- or you can reuse a typical distribution of trade volumes of the day ${\cal V}=(v_1,\ldots,v_L)$. Be careful when I speak about trades, I have in mind market orders you need to aggregate several trades.
You end up with different measures of market depth, like
$$\mathbb{E}(C(V,t)|V\in {\cal V}, t\in {\cal T}),$$
or
$$\mathbb{E}(C(V^*,t)|t\in {\cal B}).$$