Commit Graph

49 Commits

Author SHA1 Message Date
Victor Stinner ae21bc3154 PEP 418: Add Boost.Chrono library in links 2012-04-04 13:26:35 +02:00
Victor Stinner 9c1794adeb PEP 418: Add also timeout_clock() alternative name 2012-04-04 03:47:55 +02:00
Victor Stinner acaec37446 Rewrite the PEP 418
* Rename time.steady() to time.monotonic(), again
 * time.monotonic() does not fallback to the system clock anymore
 * Drop time.perf_counter() function
2012-04-04 02:57:55 +02:00
Victor Stinner f44aa119d8 PEP 418: Add issues of the hacked monotonic function 2012-04-04 01:57:37 +02:00
Victor Stinner 0e03a9a393 PEP 418: Fix typo (Specifiction) 2012-04-04 01:49:55 +02:00
Victor Stinner ab8cded54c PEP 418: Rename time.highres() to time.perf_counter() 2012-04-04 01:09:35 +02:00
Victor Stinner f6c80084f7 PEP 418: Add definitions of "monotonic" and "steady" 2012-04-04 01:07:55 +02:00
Victor Stinner aed5ab41f6 PEP 418: Add 3 alternatives 2012-04-04 01:00:46 +02:00
Victor Stinner 755f32dcfa PEP 418: Mention CLOCK_*_COARSE and Tools/pybench/systimes.py 2012-04-03 14:00:16 +02:00
Victor Stinner a1126cf458 PEP 418: Fix time.steady() pseudo-code
GetTickCount[64] returns a number of milliseconds, not a number of seconds.
2012-04-03 01:45:49 +02:00
Victor Stinner 66c23f28d7 PEP 418: Rename time.monotonic() to time.steady() 2012-04-03 01:42:42 +02:00
Victor Stinner 4416dc13ff PEP 418: Fix a typo 2012-04-03 01:26:35 +02:00
Victor Stinner f0107e6f66 PEP 418: Add the accuracy of process and thread time clocks 2012-04-03 01:14:28 +02:00
Victor Stinner 7ba7cc657f PEP 418: Add tables of clock accuracy
* Add a "NTP adjusted" section
 * Don't use CLOCK_MONOTONIC_RAW on Linux for time.monotonic()
2012-04-03 00:18:51 +02:00
Victor Stinner c11b091c2c PEP 418: Add link to libpthread for Windows 2012-04-02 21:52:32 +02:00
Victor Stinner 6d6819334c PEP 418: time.get_clock_info() may provide more information (accuracy, is_adjusted) 2012-04-02 21:48:03 +02:00
Victor Stinner 403a3a9778 PEP 418: time.get_clock_info(), rename "monotonic" option to "is_monotonic" 2012-04-01 04:30:13 +02:00
Victor Stinner 88e5572ca6 PEP 418: Drop fallback parameter of time.monotonic()
time.monotonic() now always falls back and time.get_clock_info() can be used to
check if the clock is monotonic.
2012-04-01 04:23:32 +02:00
Victor Stinner e30d4d8b81 PEP 418: Add time.get_clock_info() 2012-04-01 04:11:08 +02:00
Victor Stinner 196140e221 PEP 418: Add a "Hardware clocks" section
* Mention the QueryPerformanceCounter() issue on CPU with variable frequency
2012-04-01 04:03:15 +02:00
Georg Brandl 7638f18993 PEP 418: more grammar fixes 2012-03-31 08:53:07 +02:00
Georg Brandl 2534727122 Edit PEP 418: add missing copyright and file variable footer, fix line length and indentation of bullet lists, fix grammar and spelling 2012-03-31 08:38:41 +02:00
Victor Stinner 72a7239f0e PEP 418: Cleanup after reintroduction of fallback=True 2012-03-31 02:00:43 +02:00
Victor Stinner 53fa07dcc6 PEP 418: Fix time.highres() pseudo code 2012-03-31 01:39:46 +02:00
Victor Stinner 8e9a3c50ca PEP 418: Add fallback=True argument to time.monotonic()
* time.monotonic() doesn't use QPC anymore
 * Rewrite also time.monotonic() and time.highres() definitions.
2012-03-31 00:50:05 +02:00
Victor Stinner 2e69f4914f PEP 418: Add a table summarizing system clocks 2012-03-30 23:16:06 +02:00
Victor Stinner 5d38774ed5 PEP 418: split resolution/accuracy in the able; add a section on Linux timers 2012-03-30 13:53:40 +02:00
Victor Stinner a21dff29ba PEP 418: Try to fill the "Action on suspend" column 2012-03-30 04:21:11 +02:00
Victor Stinner 4dc3e314eb PEP 418: Fill the "Adjusted by NTP" column of the summary table 2012-03-30 03:55:35 +02:00
Victor Stinner d45837c9c0 PEP 418: more data about OS monotonic clocks 2012-03-30 03:41:03 +02:00
Victor Stinner 0b0e2d58d9 PEP 418: more links, Java and Ruby 2012-03-30 01:53:38 +02:00
Victor Stinner 261b553146 PEP 418: Add some links to function documentation 2012-03-29 02:10:32 +02:00
Victor Stinner 2e4b34df42 PEP 418: More QueryPerformanceCounter bugs 2012-03-29 01:57:15 +02:00
Victor Stinner 9b27cd2bb7 PEP 418: Reorder links 2012-03-29 01:29:10 +02:00
Victor Stinner 1590fd155a PEP 418: QueryPerformanceCounter() has a known bug 2012-03-29 01:11:16 +02:00
Victor Stinner c0a8e14174 PEP 418: list OSes supporting or not CLOCK_MONOTONIC
Give also more information about GetTickCount().
2012-03-29 00:57:15 +02:00
Victor Stinner 319f49544b PEP 418: Rename time.hires() to time.highres(); add Solaris monotonic clocks
Mention also other time.highres() name propositions.
2012-03-28 15:02:58 +02:00
Victor Stinner aaa1107673 PEP 418: Mention the Technical Q&A QA1398 for mach_absolute_time() 2012-03-28 02:59:01 +02:00
Victor Stinner 02b9a5bcb3 PEP 418: merge time.try_monotonic() and time.hires() into time.hires()
Cleanup the PEP.
2012-03-28 02:18:11 +02:00
Victor Stinner 280378cb3a PEP 418: Fix time.time() pseudo-code, clock_gettime(CLOCK_REALTIME) falls back
to get _time.gettimeofday() on OSError

Add also a note about the _time module.
2012-03-28 01:57:37 +02:00
Victor Stinner 8d75780f92 PEP 418: I'm not quite sure, but it looks like QueryPerformanceCounter() *is* monotonic 2012-03-28 01:45:51 +02:00
Victor Stinner 196e5a23ac PEP 418: time.hires() uses time.monotonic() if available
hires() preference for clock_gettime() clocks:
CLOCK_MONOTONIC_RAW > CLOCK_MONOTONIC > CLOCK_REALTIME
2012-03-27 19:50:13 +02:00
Victor Stinner 4f31bacf76 PEP 418: Replace "API design" title with "Alternatives: API design" 2012-03-27 19:40:24 +02:00
Victor Stinner ae01ce94ad PEP 418: Write the pseudo-code of time.time() 2012-03-27 19:34:04 +02:00
Victor Stinner ee094d5cb9 PEP 418: rename time.steady() to time.try_monotonic(); add time.hires() 2012-03-27 19:27:28 +02:00
Victor Stinner 167f0c34cc PEP 418: Add more links 2012-03-27 02:19:00 +02:00
Victor Stinner f2a9cd477f PEP 418: Define time.monotonic and time.steady 2012-03-27 01:30:38 +02:00
Victor Stinner d0b769260e PEP 418: Mention an use case for truly monotonic clock 2012-03-27 01:22:04 +02:00
Victor Stinner 6bccbeeb21 Add PEP 418: Add monotonic clock 2012-03-27 01:12:03 +02:00