Commit Graph

127 Commits

Author SHA1 Message Date
Victor Stinner 6708f4231a PeP 418: Move the CLOCK_BOOTTIME paragraph 2012-04-12 22:26:43 +02:00
Georg Brandl e0a2434b9f PEP 418: editing. 2012-04-12 19:12:48 +02:00
Victor Stinner cff256bb94 PEP 418: Add CLOCK_BOOTTIME to monotonic clocks 2012-04-12 14:01:02 +02:00
Victor Stinner a724856238 PEP 418: Add time.perf_counter(), time.process_time(), deprecate time.clock()
Reorder also sections.
2012-04-12 13:38:06 +02:00
Victor Stinner 288203ec0e PEP 418: Make it more explicit than realtime does include time elapsed during
sleep, whereas process time does not.
2012-04-12 01:43:22 +02:00
Victor Stinner e830be9f6e PEP 418: Use different names for manpage links 2012-04-12 01:26:17 +02:00
Victor Stinner 2d861df8bf PEP 418: Move Linux clocksource and FreeBSD timecounter
Remove duplicate info on hardware clocks
2012-04-12 01:22:23 +02:00
Victor Stinner 976aae2d30 PEP 418: Remove duplicate definitions 2012-04-12 01:12:42 +02:00
Victor Stinner 80391681f6 PEP 418: Integrate Jim Jewett's Glossary 2012-04-12 01:06:31 +02:00
Victor Stinner f485058ac7 PEP 418: Fix reST syntax of a title 2012-04-12 00:41:42 +02:00
Victor Stinner 109ea46bfa PEP 418: Replace accuracy with precision 2012-04-12 00:39:22 +02:00
Victor Stinner e8db274322 PEP 418: Fix syntax of a link 2012-04-12 00:36:02 +02:00
Victor Stinner 61c7664195 PEP 418: Mention the issue #14555 2012-04-12 00:34:32 +02:00
Victor Stinner a15d634866 PEP 418: another benchmark on FreeBSD
Add also more info on FreeBSD timecounters
2012-04-12 00:19:16 +02:00
Victor Stinner a7be2f184d PEP 418: Add a table with performances of TSC, ACPI PM and HPET clocks 2012-04-11 22:48:14 +02:00
Victor Stinner 552c8c82ec PEP 418: Mention SMI issues 2012-04-11 14:04:23 +02:00
Victor Stinner 165c2275bc PEP 418: Add time.clock(), fix typos, mention issue #14309 2012-04-11 13:06:33 +02:00
Victor Stinner df6ee0edee PEP 418: Rewrite time.monotonic() definition 2012-04-11 02:04:51 +02:00
Victor Stinner 4d18f06334 PEP 418: Rewrite the rationale 2012-04-11 01:37:04 +02:00
Victor Stinner bb348a9291 PEP 418: Add a linkg to GetSystemTimeAsFileTime() doc 2012-04-11 01:23:28 +02:00
Victor Stinner fb28ab8af2 PEP 418: mach_absolute_time() doesn't include suspend time 2012-04-11 00:58:33 +02:00
Victor Stinner 6b47f7b960 PEP 418: Add info about sleep/suspend 2012-04-11 00:42:54 +02:00
Victor Stinner fef248a199 PEP 418: Add CLOCK_BOOTTIME and FreeBSD kern.timecounter.hardware sysctl 2012-04-10 13:58:42 +02:00
Victor Stinner 954c3684ce PEP 418: Re-add the pseudo-code for time.perf_counter() 2012-04-09 13:21:34 +02:00
Victor Stinner 94d094d791 PEP 418: Move resolution and accuracy definitions to the Definition section 2012-04-09 13:04:15 +02:00
Victor Stinner 471e1412ec PEP 418: Make it explicit than calling timeBeginPeriod() affects
WaitForSingleObject() and Sleep()
2012-04-09 02:24:38 +02:00
Victor Stinner 05d90f35a2 PEP 418: add info on functions to sleep 2012-04-09 01:32:02 +02:00
Victor Stinner fda80aabbb PEP 418: Add link to Monoclock library and an old article on Windows clocks
Mention also another issue of QueryPerformanceCounter()
2012-04-05 00:38:51 +02:00
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