Simulating the discharge of a condenser using CircuitLab
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. The modified schematic.


Use the time-delay component.
The simulator requires a ground reference.




Figure 2. Time-delay settings.



Figure 3. The result.