<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/pytime.c, branch v3.7.13</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)</title>
<updated>2020-05-18T16:39:13+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-05-18T16:39:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8e49c1fcf15969ca5c585648a5520617cc0566e6'/>
<id>8e49c1fcf15969ca5c585648a5520617cc0566e6</id>
<content type='text'>
(cherry picked from commit f660567937277cc3a2cd53af77bbb18e905427e8)

Co-authored-by: Minmin Gong &lt;gongminmin@msn.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit f660567937277cc3a2cd53af77bbb18e905427e8)

Co-authored-by: Minmin Gong &lt;gongminmin@msn.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix miscellaneous typos (#4275)</title>
<updated>2017-11-05T13:37:50+00:00</updated>
<author>
<name>luzpaz</name>
<email>luzpaz@users.noreply.github.com</email>
</author>
<published>2017-11-05T13:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a5293b4ff2c1b5446947b4986f98ecf5d52432d4'/>
<id>a5293b4ff2c1b5446947b4986f98ecf5d52432d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31784: Implement PEP 564: add time.time_ns() (#3989)</title>
<updated>2017-11-02T14:28:27+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-02T14:28:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c29b585fd4b5a91d17fc5dd41d86edff28a30da3'/>
<id>c29b585fd4b5a91d17fc5dd41d86edff28a30da3</id>
<content type='text'>
Add new time functions:

* time.clock_gettime_ns()
* time.clock_settime_ns()
* time.monotonic_ns()
* time.perf_counter_ns()
* time.process_time_ns()
* time.time_ns()

Add new _PyTime functions:

* _PyTime_FromTimespec()
* _PyTime_FromNanosecondsObject()
* _PyTime_FromTimeval()

Other changes:

* Add also os.times() tests to test_os.
* pytime_fromtimeval() and pytime_fromtimeval() now return
  _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined
  behaviour
* _PyTime_FromNanoseconds() parameter type changes from long long to
  _PyTime_t</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add new time functions:

* time.clock_gettime_ns()
* time.clock_settime_ns()
* time.monotonic_ns()
* time.perf_counter_ns()
* time.process_time_ns()
* time.time_ns()

Add new _PyTime functions:

* _PyTime_FromTimespec()
* _PyTime_FromNanosecondsObject()
* _PyTime_FromTimeval()

Other changes:

* Add also os.times() tests to test_os.
* pytime_fromtimeval() and pytime_fromtimeval() now return
  _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined
  behaviour
* _PyTime_FromNanoseconds() parameter type changes from long long to
  _PyTime_t</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (#4003)</title>
<updated>2017-10-17T14:14:41+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2017-10-17T14:14:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46'/>
<id>2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983)</title>
<updated>2017-10-16T15:44:31+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-16T15:44:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bdaeb7d237462a629e6c85001317faa85f94a0c6'/>
<id>bdaeb7d237462a629e6c85001317faa85f94a0c6</id>
<content type='text'>
* Rewrite win_perf_counter() to only use integers internally.
* Add _PyTime_MulDiv() which compute "ticks * mul / div"
  in two parts (int part and remaining) to prevent integer overflow.
* Clock frequency is checked at initialization for integer overflow.
* Enhance also pymonotonic() to reduce the precision loss on macOS
  (mach_absolute_time() clock).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rewrite win_perf_counter() to only use integers internally.
* Add _PyTime_MulDiv() which compute "ticks * mul / div"
  in two parts (int part and remaining) to prevent integer overflow.
* Clock frequency is checked at initialization for integer overflow.
* Enhance also pymonotonic() to reduce the precision loss on macOS
  (mach_absolute_time() clock).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31773: time.perf_counter() uses again double (GH-3964)</title>
<updated>2017-10-12T15:51:56+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-12T15:51:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=cba9a0c6def70549046f1afa6a80e38fe706520e'/>
<id>cba9a0c6def70549046f1afa6a80e38fe706520e</id>
<content type='text'>
time.clock() and time.perf_counter() now use again C double
internally.

Remove also _PyTime_GetWinPerfCounterWithInfo(): use
_PyTime_GetPerfCounterDoubleWithInfo() instead on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
time.clock() and time.perf_counter() now use again C double
internally.

Remove also _PyTime_GetWinPerfCounterWithInfo(): use
_PyTime_GetPerfCounterDoubleWithInfo() instead on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup pytime.c (#3955)</title>
<updated>2017-10-11T15:11:38+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-11T15:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=277c84067ff5dfa271725ee9da1a9d75a7c0bcd8'/>
<id>277c84067ff5dfa271725ee9da1a9d75a7c0bcd8</id>
<content type='text'>
* Move _PyTime_overflow() at the top
* Move assertion on numerator into _PyTime_ObjectToDenominator()
* PEP 7: add { ... } to if blocks</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Move _PyTime_overflow() at the top
* Move assertion on numerator into _PyTime_ObjectToDenominator()
* PEP 7: add { ... } to if blocks</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31415: Add _PyTime_GetPerfCounter() and use it for -X importtime (#3936)</title>
<updated>2017-10-10T09:51:50+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-10T09:51:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a997c7b434631f51e00191acea2ba6097691e859'/>
<id>a997c7b434631f51e00191acea2ba6097691e859</id>
<content type='text'>
* Add _PyTime_GetPerfCounter()
* Use _PyTime_GetPerfCounter() for -X importtime
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add _PyTime_GetPerfCounter()
* Use _PyTime_GetPerfCounter() for -X importtime
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31338 (#3374)</title>
<updated>2017-09-15T01:13:16+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2017-09-15T01:13:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b2e5794870eb4728ddfaafc0f79a40299576434f'/>
<id>b2e5794870eb4728ddfaafc0f79a40299576434f</id>
<content type='text'>
* Add Py_UNREACHABLE() as an alias to abort().
* Use Py_UNREACHABLE() instead of assert(0)
* Convert more unreachable code to use Py_UNREACHABLE()
* Document Py_UNREACHABLE() and a few other macros.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add Py_UNREACHABLE() as an alias to abort().
* Use Py_UNREACHABLE() instead of assert(0)
* Convert more unreachable code to use Py_UNREACHABLE()
* Document Py_UNREACHABLE() and a few other macros.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-26669: Fix nan arg value error in pytime.c (#3085)</title>
<updated>2017-09-08T23:05:05+00:00</updated>
<author>
<name>Han Lee</name>
<email>hanlee.dev@gmail.com</email>
</author>
<published>2017-09-08T23:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=829dacce4fca60fc3c3367980e75e21dfcdbe6be'/>
<id>829dacce4fca60fc3c3367980e75e21dfcdbe6be</id>
<content type='text'>
* Fix #26669

* Modify NaN check function and error message

* Fix pytime.c when arg is nan

* fix whitespace
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix #26669

* Modify NaN check function and error message

* Fix pytime.c when arg is nan

* fix whitespace
</pre>
</div>
</content>
</entry>
</feed>
