Re: Finding cpu time spent on my program

2007-02-06 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Feb 5, 2:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > I am trying to measure the time the processor spends on some > > operation, and I want this measure to not depend on the current load > > of the machine. > > One of the best wa

Re: Finding cpu time spent on my program

2007-02-05 Thread Carl J. Van Arsdall
[EMAIL PROTECTED] wrote: > On Feb 5, 2:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > >> I am trying to measure the time the processor spends on some >> operation, and I want this measure to not depend on the current load >> of the machine. But doing the following prints different val

Re: Finding cpu time spent on my program

2007-02-05 Thread kyosohma
On Feb 5, 2:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am trying to measure the time the processor spends on some > operation, and I want this measure to not depend on the current load > of the machine. But doing the following prints different values each > time a run. > > import tim

Finding cpu time spent on my program

2007-02-05 Thread [EMAIL PROTECTED]
I am trying to measure the time the processor spends on some operation, and I want this measure to not depend on the current load of the machine. But doing the following prints different values each time a run. import time c1 = time.clock() for x in xrange(0xF): pass c2 = time.clock() print "