[Tutor] get cpu time used by a python script
Christopher Lucas
clucas916 at gmail.com
Wed Feb 7 05:57:45 CET 2007
On Feb 6, 2007, at 9:37 PM, Kim Branson wrote:
>
> On Feb 6, 2007, at 8:20 PM, Christopher Lucas wrote:
>
>>
>> On Feb 6, 2007, at 9:14 PM, Kim Branson wrote:
>>
>>> Hi
>>>
>>> whats the simplest cross platform way of getting the cpu time
>>> used by
>>> a python script?
>>>
>>> Kim
>>
>> What do you mean by "cpu time", Kim?
>
> The time in used by the cpu for the execution of the script, rather
> than the wall clock time.
>
> CPU execution time for program = Clock Cycles for program x Clock
> Cycle Time
>
> But i'm interested in the cpu cycles used purely for the python
> app, regardless of what other processes may be running.
>
> kim
>
I'm not sure, but this link may be of use. http://www.gossamer-
threads.com/lists/python/python/545797?page=last
More information about the Tutor
mailing list