turtledemo/penrose.py: remove unused clock() calls (GH-10033)
Actually time calculations were remove in commit 891a1f8
.
This commit is contained in:
parent
9f43fbbd9d
commit
9f270a2423
|
@ -137,13 +137,10 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2):
|
|||
goto(startpos)
|
||||
setheading(0)
|
||||
tiledict = {}
|
||||
a = clock()
|
||||
tracer(0)
|
||||
fun(l, n)
|
||||
b = clock()
|
||||
draw(l, n, th)
|
||||
tracer(1)
|
||||
c = clock()
|
||||
nk = len([x for x in tiledict if tiledict[x]])
|
||||
nd = len([x for x in tiledict if not tiledict[x]])
|
||||
print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
|
||||
|
|
Loading…
Reference in New Issue