>>> import time >>> time.clock() 0.059185000000000001
or: >>> from time import clock >>> clock() best, mg On Feb 21, 2011, at 12:38 PM, Rafael Bejarano wrote: > Hello, > > I can't get the clock() function in the time module to work. I would > appreciate any helpful suggestions. > > Below is a copy of the Terminal session, for your perusal. > > Thanks. > Rafael Bejarano > > Last login: Mon Feb 21 13:02:48 on ttyp1 > Welcome to Darwin! > 173-216-77-254-arka:~ Rafael$ python > Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52) > [GCC 4.0.1 (Apple Inc. build 5490)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import time > >>> clock() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'clock' is not defined > >>> > > > > > > > > > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG