Measuring duration of voltage peak

I think perhaps you just need to low pass filter the value?