fb16dfecae
Commit b7f05445c0
has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
12 lines
264 B
Text
12 lines
264 B
Text
Time execution of blocks of code.
|
|
|
|
Tested against python 3.6+, but should work with other versions.
|
|
|
|
The easiest way to time something is with tic and toc:
|
|
|
|
import time
|
|
from ttictoc import tic,toc
|
|
tic()
|
|
time.sleep(1)
|
|
elapsed = toc()
|
|
print('Elapsed time:',elapsed)
|