turtledemo/penrose.py: remove unused clock() calls (GH-10033)

Actually time calculations were remove in commit 891a1f86.
parent 9f43fbbd
...@@ -137,13 +137,10 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2): ...@@ -137,13 +137,10 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2):
goto(startpos) goto(startpos)
setheading(0) setheading(0)
tiledict = {} tiledict = {}
a = clock()
tracer(0) tracer(0)
fun(l, n) fun(l, n)
b = clock()
draw(l, n, th) draw(l, n, th)
tracer(1) tracer(1)
c = clock()
nk = len([x for x in tiledict if tiledict[x]]) nk = len([x for x in tiledict if tiledict[x]])
nd = len([x for x in tiledict if not 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)) print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment