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.