The shortage function, an important tool in production theory, measures potential increases in outputs and decreases in inputs for a given direction g at a given date. To develop a temporal version of technical efficiency measurement, we introduce the concept of a temporal shortage function. This temporal efficiency measure is easily computed using linear programming. We also establish a duality result stating that the temporal profit function and the temporal shortage function are dual to one another. This result has two consequences. First, one can derive a shadow price path via the shadow prices of the temporal shortage function. Second, transposing the classic Farrell inefficiency decomposition, temporal profit efficiency is decomposed into temporal technical and temporal allocative efficiency components. Finally, in line with the recent literature on aggregation over firms, this contribution treats the possibilities and limits of the aggregation of efficiency measures over time.