[Numpy-discussion] extracting a random subset of a vector

Jp Calderone exarkun at divmod.com
Tue Sep 7 13:20:01 CDT 2004


Chris Barker wrote:
> Curzio Basso wrote:
> 
>> a question about the method: isn't a bit risky to use the clock() for 
>> timing the performance? The usual argument is that CPU allocates time 
>> for different processes, and the allocation could vary. 
> 
> 
> that's why I use time.clock() rather than time.time().
> 

   Perhaps clearing up a mutually divergent assumption:  time.clock() 
measures CPU time on POSIX and wallclock time (with higher precision 
than time.time()) on Win32.

   Jp




More information about the Numpy-discussion mailing list