I assume your problem does not concern a heated flow with phase-change. However the following document about a flow with phase-change provides expressions for quality (gas to liquid ratio) and slippage between phases which could provide the basis for an expression to calculate bubble residence time.