Howto measure BUS rise time + variable pullup resistor

This would mean one circuit to inject charge and another one to unload the capacity.