I want to measure the time difference (inseconds) between two lines of code.
while ret:
ret, image_np=cap.read()
time_1
for condition:
if condition:
time_2
I want to subtract (time_2) - (time_1)
. But the problem is that time_1
always changes and I can't calculate the time.