Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove unused clock() objects; actually time calculations were remove…
… in 891a1f8
  • Loading branch information
srinivasreddy committed Oct 21, 2018
commit 2fc10b6dcbd03975afbfe574e5e21efb623980f3
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