python source benchmark
Alex
the_brain at mit.edu
Tue Oct 3 00:16:14 EDT 2000
> I'm trying to benchmark python source with clock() function, but my
> code below returns negative value. I am not sure if my code is wrong
> or clock() is not suitable for getting CPU time... Any comment would
> help me a lot. Thanks.
I haven't used the clock function before, so I don't know whether or not
it's more appropriate, but I have always used time.time for this sort of
thing. You should check out the profiler, too. It's really easy to
use.
Alex.
--
Speak softly but carry a big carrot.
More information about the Python-list
mailing list