Switch Example
Voltage signals of Capacitor (red) , Resistor (green) and sum of both (blue):
Current signals: