Ignore:
Timestamp:
12/03/12 11:57:08 (3 years ago)
Author:
mmckerns
Message:

memoized0 functions renamed to memoized, memoized class to memoize;
improved simple timer decorator to include verbosity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/test_timer.py

    r532 r601  
    1111from timer import timed 
    1212 
    13 @timed 
     13@timed(verbose=False) 
    1414def square_me(x): 
    1515    return [i**2 for i in x] 
     
    1717# time the function call using the @timed function 
    1818result = square_me(big_array) 
     19print "Timed: %s" % square_me.time() 
Note: See TracChangeset for help on using the changeset viewer.