Changeset 601 for branches/decorate/test_timer.py
- Timestamp:
- 12/03/12 11:57:08 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/decorate/test_timer.py
r532 r601 11 11 from timer import timed 12 12 13 @timed 13 @timed(verbose=False) 14 14 def square_me(x): 15 15 return [i**2 for i in x] … … 17 17 # time the function call using the @timed function 18 18 result = square_me(big_array) 19 print "Timed: %s" % square_me.time()
Note: See TracChangeset
for help on using the changeset viewer.