1. A method of operating a memory device comprising: generating a pulse stream based on current passing through a memory element; determining a resistance of the memory element based on the pulse stream; and storing the determined resistance of the memory element, wherein storing the determined resistance of the memory element comprises storing the determined resistance of the memory element in an accumulator.