According to an embodiment of the invention there may be provided a method for measuring, by a power measurement circuit of a memory controller, a power consumption of a flash memory unit coupled to the memory controller to provide power measurements; wherein the memory controller further may include a read circuit, a write circuit, an erase circuit and a processor.