What is the Python equivalent of Matlab's tic and toc functions ...

Apart from timeit which ThiefMaster mentioned, a simple way to do it is just (after importing time ): t = time.time() # do stuff elapsed = time.time() - t.

อ่านต่อ


banner