[Python-checkins] CVS: python/dist/src/Doc/lib libtime.tex,1.41,1.42

Fred L. Drake fdrake@users.sourceforge.net
Mon, 16 Jul 2001 08:40:59 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv22657/lib

Modified Files:
	libtime.tex 
Log Message:

Revise the description of time.clock() so that it correctly describes the
Windows version of the function as well as the Unix flavor.

This fixes SF bug #441357.


Index: libtime.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libtime.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** libtime.tex	2001/07/14 02:50:55	1.41
--- libtime.tex	2001/07/16 15:40:57	1.42
***************
*** 127,136 ****
  
  \begin{funcdesc}{clock}{}
! Return the current processor time as a floating point number expressed in
  seconds.  The precision, and in fact the very definition of the meaning
! of ``processor time''\index{CPU time}\index{processor time}, depends on
! that of the C function of the same name, but in any case, this is the
! function to use for benchmarking\index{benchmarking} Python or timing
! algorithms.
  \end{funcdesc}
  
--- 127,142 ----
  
  \begin{funcdesc}{clock}{}
! On \UNIX, return
! the current processor time as a floating point number expressed in
  seconds.  The precision, and in fact the very definition of the meaning
! of ``processor time''\index{CPU time}\index{processor time}, depends
! on that of the C function of the same name, but in any case, this is
! the function to use for benchmarking\index{benchmarking} Python or
! timing algorithms.
! 
! On Windows, this function returns the nearest approximation to
! wall-clock time since the first call to this function, based on the
! Win32 function \cfunction{QueryPerformanceCounter()}.  The resolution
! is typically better than one microsecond.
  \end{funcdesc}