For a random process (X(t), t ≥ 0), suppose that there is a cost fx associated with being in state x. This paper is concerned with evaluating the distribution and the expected value of the total cost Γ over the life of the process. The existing literature contains results for particular classes of process and particular choices of f , usually linear functions of the state. We will describe a me...