0

I need to figure out how long some operations take, and it needs to be precise as shown in my output example.output

I tried using datetime.datetime.now() to calculate the time it takes for an operation but the results are not precise enough (I get something like .000009 instead of the exact decimal like it shows in the output). How can I get exact results?

  • 1
    Does this help? https://stackoverflow.com/questions/2866380/how-can-i-time-a-code-segment-for-testing-performance-with-pythons-timeit – Vin Nov 18 '22 at 22:59

0 Answers0