A method of measuring an analyte using a biosensor for prolonging a usage lifetime of the biosensor implanted subcutaneously to measure a physiological signal representative of a physiological parameter associated with the analyte in a biofluid, the biosensor comprising two working electrodes and two counter electrodes disposed on a substrate , each working electrode being at least partially covered by a chemical reagent , each counter electrode including an electrode material having a silver and a silver halide, each silver halide having an initial amount, characterised by that the method comprising cyclic steps of: applying a measurement voltage to drive one of the two working electrodes at a measurement period to measure the physiological signal, thereby obtaining the physiological parameter, wherein the silver halide of one of the two counter electrodes is consumed by a consumption amount; calculating the consumption amount of the silver halide being consumed from one counter electrode by calculating an area under the current curve of the physiological signal during a measurement period; stopping applying the measurement voltage; applying a replenishment voltage to drive the consumed counter electrode at a replenishment period to replenish the silver halide of a replenishment amount to the consumed counter electrode , calculating the replenishment amount of the silver halide being replenished to the counter electrode by calculating an area under the current curve of the counter electrode during a replenishment period; wherein whenever the physiological parameter is obtained, within the replenishment period, a guarding value of a sum of the calculated replenishment amount and the initial amount subtracting the calculated consumption amount is controlled within a range of the initial amount plus or minus a specific value, and the calculated replenishment amount is made close to the calculated consumption amount or within a certain range of the calculated consumption amount in that the replenishment voltage or the replenishment period is dynamically adjusted. applying a measurement voltage to drive one of the two working electrodes at a measurement period to measure the physiological signal, thereby obtaining the physiological parameter, wherein the silver halide of one of the two counter electrodes is consumed by a consumption amount; calculating the consumption amount of the silver halide being consumed from one counter electrode by calculating an area under the current curve of the physiological signal during a measurement period; stopping applying the measurement voltage; applying a replenishment voltage to drive the consumed counter electrode at a replenishment period to replenish the silver halide of a replenishment amount to the consumed counter electrode , calculating the replenishment amount of the silver halide being replenished to the counter electrode by calculating an area under the current curve of the counter electrode during a replenishment period; wherein whenever the physiological parameter is obtained, within the replenishment period, a guarding value of a sum of the calculated replenishment amount and the initial amount subtracting the calculated consumption amount is controlled within a range of the initial amount plus or minus a specific value, and the calculated replenishment amount is made close to the calculated consumption amount or within a certain range of the calculated consumption amount in that the replenishment voltage or the replenishment period is dynamically adjusted. <EOS>