def listcomp( )return [ for in range( )like listcomp timer)(listcomplistcomptriggers oncall @timer('[mmm]==>'def mapcall( )return force(map((lambda xx )range( ))list(for views for func in (listcompmapcall)result func( time for this callall callsreturn value func( print(resultprint('alltime % \nfunc alltimetotal time for all calls print(''test on methods class persondef __init__(selfnamepay)self name name self pay pay @timer(def giveraise(selfpercent)self pay *( percentgiveraise timer()(giveraisetracer remembers giveraise @timer(label='**'def lastname(self)return self name split()[- lastname timer)(lastnamealltime per classnot instance bob person('bob smith' sue person('sue jones' bob giveraise sue giveraise runs oncall(sue print(int(bob pay)int(sue pay)print(bob lastname()sue lastname()runs oncall(bob)remembers lastname print(' (person giveraise alltimeperson lastname alltime)if all goes according to planyou'll see the following output in both python and xalbeit with timing results that will vary per python and machinec:\codepy - timerdeco-test py [ccc]==>listcomp [ccc]==>listcomp [ alltime [mmm]==>mapcall [mmm]==>mapcall [ alltime giveraise decorators