enter image description here
I have written this simple while I was working with multi-processing.
Well, everything in my code was going perfectly, except the time.perf_counter()
giving like 7000 seconds for a program which barely even took 2-3 seconds. I tried using the time.perf_counter_ns()
but it didn’t work out as I expected. Firstly, it gave me values in scientific form and when I converted nanoseconds to seconds it still gave me the same result as earlier. And rather than those, I have tried using the timeit module priniting timeit.timeit()
, and it literally gave me values like 0.0143249234 for a program which took more than 2 seconds.