Capacitor discharge resistance measurement