Is there a way to find the pump runtime during a simulation?

I know that WS has a "duration()" SQL aggregate function that can be used to find the "duration the flow was greater than 0"... Is there an equivalent SQL function in ICM?