[Pythonmac-SIG] time.clock() and profile
Jack Jansen
Jack.Jansen at cwi.nl
Fri Feb 13 08:02:54 EST 2004
On 13-feb-04, at 1:18, Samuel M. Smith wrote:
> Is time.clock() in the time module broken on Python 2.3 Mac OSX 10.3.2
>
> It seems to give out very slowly changing times. As in minutes to
> change anything.
Note that time.clock() does not return realtime (use time.time() for
that), it returns
CPU seconds used by the current process. So if you type time.clock(),
then do nothing
for three days, then type time.clock() again the two values should be
almost the same.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list