Skip to content

Commit

Permalink
turtledemo/penrose.py: remove unused clock() calls (GH-10033)
Browse files Browse the repository at this point in the history
Actually time calculations were remove in commit 891a1f8.
  • Loading branch information
srinivasreddy authored and vstinner committed Oct 24, 2018
1 parent 9f43fbb commit 9f270a2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Lib/turtledemo/penrose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9f270a2

Please sign in to comment.