Time will depend on the current flowing, which in turn will usually depend on the voltage applied. Comomon approach is not to measure time, but to apply voltage (most likely not a constant one, but sweeping) and to measure current as a function of time.
Google voltamperometry, polarography, coulometry. There are fat books that just introduce main ideas...