the capacitor charges with a time constant