I have a function and I want to know how many times this function is executed per minute
For example, write every 1 minute :
204 hash/m
This is my function
def test_hash_abc(difficulty):
x = 0
while 1:
y = hashlib.sha256("hello world{}".format(x).encode('utf-8')).hexdigest()
if y[0:len(difficulty)] == str(difficulty) :
print(y)
x+= 1
else : x+= 1
test_hash_abc('ffff')