A time-based technique for a resistive detector