2 Answers
New Answeryou can mesure the time execution with using in first line: "start=time.time()" and the final line: "print(time.time()-start)" and it will give you the time ,
there's no way to "measure" code execution in milliseconds per se, but if you used big O notation, this code has a time of O(1)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message