Saturday, January 10, 2009

Announcing stopwatch 0.3.1

There is a new release of stopwatch, a simple utility for measuring time in Python. The release addes a simple decorator for functions to print the execution time of each call to that function.

>>> from stopwatch import clockit
>>> @clockit
def multiply(a, b):
return a * b
>>> r = multiple(4, 5)
multiple in 1.38282775879e-05 sec
>>> print r

You can obtain the new release with easy_install
easy_install -U stopwatch

or download the appropriate release.


Unknown said...

I've found your stopwatch to use in my python program, the only thing is, when trying to import it, it generates an error saying:
"SyntaxError: invalid syntax (, line 98). I've tried solving it myself, but my knowledge of python isn't very big.. could you tell me what's wrong please? Thanks you in advance, and thank you for programming such a handy little module like this =)

vosa said...

thank you for your program. Btw. maybe this method is good idea :)

def reset(self):self.__init__()

Unknown said...

Betting in your city - Sporting 100
Betting in 토토사이트 your 토토 city - Sporting 100

Anonymous said...

In the latter case, the dildo acts as a type of "see-saw," the place each partner takes an end and receives stimulation. adult toy Initially expensive, the cost of|the price of} silicone dildos has dropped over time. Silicone is proof against unintentional harm, non-porous, and could be sterilized easily, making silicone dildos extra sturdy and sanitary than dildos manufactured from other gentle supplies. Silicone dildos conduct vibration properly, and can be utilized in combination with a vibrator. Sex chair Horse dildo Religion is in the materials context, based mostly on astronomical occasions would possibly be} noticed in virtually periodic trend.

dagnyearl said...

This part is all those hanging video video 1xbet games, which can be found on numerous units and have fairly quantity of} betting alternate options. The state handed laws in early 2020 to permit sports activities gambling at tribal casinos in-state. The state does not enable for mobile/online wagering.All betting on in-state collegiate video games and events, including player prop bets, is prohibited. All betting on in-state collegiate video games and events, including player prop bets, is prohibited. Super Slots is providing new players one of many greatest crypto on line casino bonuses going right now. When funding your account using crypto, enter the bonus code CRYPTO400 for a mammoth 400% deposit match up to as} $4,000.

1wuinkpgqi said...

In this text, treatment with a short intervention based mostly on Naikan (self-reflection) remedy for a patient presenting with pathological playing is described. This survey investigated playing conduct amongst Chinese students learning in Macau faculties and universities. It also aimed to examine the connection between downside playing, result on} states and sensation se... A scale aimed at measuring ambivalence amongst people with pachinko/pachi-slot half in} dysfunction, the Pachinko/Pachi-Slot Playing Ambivalence Scale , was developed and its reliability and validity ascertai... The assessment was ordered in response to legislation that expanded entry to playing throughout the state. The 250-page report includes 10 really helpful methods the State and partners can take to address downside 카지노 사이트 playing amidst this expansion.

j3opr5qiqw said...

Build envelopes, minimum characteristic sizes and design guidelines differ for milling and turning. Capabilities of IoT primarily Sissy Panties For Men based CNC options aren't only limited to remote monitoring and scheduled maintenance for CNC machines. By utilizing IoT methods and leveraging its real-time alert characteristic, factories can now cut back their machine downtime and increase overall gear effectiveness. Alerts shared by machines can be utilized to take proactive measures and sudden breakdown of instruments or another part of a CNC machine. Computer numerical management is a fundamental a part of} modern manufacturing. The majority of machines operate utilizing instructions and guidelines that have been downloaded utilizing a CNC program controller...