[Python-checkins] peps: PEP 418: Make it explicit than calling timeBeginPeriod() affects

victor.stinner python-checkins at python.org
Mon Apr 9 02:24:42 CEST 2012


http://hg.python.org/peps/rev/7a9076f40577
changeset:   4207:7a9076f40577
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Apr 09 02:24:38 2012 +0200
summary:
  PEP 418: Make it explicit than calling timeBeginPeriod() affects
WaitForSingleObject() and Sleep()

files:
  pep-0418.txt |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -509,9 +509,10 @@
 The default precision of the timeGetTime function can be five
 milliseconds or more, depending on the machine.
 
-timeBeginPeriod() can be used to increase the precision of
-timeGetTime() up to 1 millisecond, but it negatively affects power
-consumption.
+timeBeginPeriod() can be used to increase the precision of timeGetTime() up to
+1 millisecond, but it negatively affects power consumption. Calling
+timeBeginPeriod() also affects the granularity of some other timing calls, such
+as CreateWaitableTimer(), WaitForSingleObject() and Sleep().
 
 .. note::
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list