Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-23 Thread Victor Stinner
>> Well, I asked on IRC what I should do for these definitions because >> I'm too tired to decide what to do. [[...]] I replaced these definitions >> with yours. > > That was nice of you.  In return, I'll go over the PEP to check that > usage is appropriate (eg, in some places "resolution" was use

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-19 Thread Cameron Simpson
On 19Apr2012 10:47, Stephen J. Turnbull wrote: | On Thu, Apr 19, 2012 at 8:15 AM, Victor Stinner | wrote: | > Well, I asked on IRC what I should do for these definitions because | > I'm too tired to decide what to do. [[...]] I replaced these definitions with yours. | | That was nice of you. I

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Victor Stinner
> That was nice of you.  In return, I'll go over the PEP to check that > usage is appropriate (eg, in some places "resolution" was used in the > sense of computer science's "precision" == reported digits). Oh, this is very likely :-) > BTW, this not a criticism, you did a great job of putting all

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Stephen J. Turnbull
On Thu, Apr 19, 2012 at 8:15 AM, Victor Stinner wrote: > Well, I asked on IRC what I should do for these definitions because > I'm too tired to decide what to do. [[...]] I replaced these definitions with > yours. That was nice of you. In return, I'll go over the PEP to check that usage is app

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Victor Stinner
>> If anyone is motivated to write a perfect (or at least better) glossary, >> please do it! > > We don't want a perfect glossary, we want one we agree on, that > defines terms consistently with the way they're used in the PEP. > However, what I read in this thread is that the PEP protagonist > do

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread R. David Murray
On Wed, 18 Apr 2012 15:50:13 -0400, Terry Reedy wrote: > On 4/18/2012 2:45 AM, Stephen J. Turnbull wrote: > > On Wed, Apr 18, 2012 at 8:25 AM, Victor Stinner > > wrote: > > > >> Ok ok, resolution / accuracy / precision are confusing (or at least > >> not well known concepts). > > > > Maybe not t

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Terry Reedy
On 4/18/2012 2:45 AM, Stephen J. Turnbull wrote: On Wed, Apr 18, 2012 at 8:25 AM, Victor Stinner wrote: Ok ok, resolution / accuracy / precision are confusing (or at least not well known concepts). Maybe not to us, but in fields like astronomy and mechanical engineering there are commonly a

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Stephen J. Turnbull
On Wed, Apr 18, 2012 at 7:29 PM, Victor Stinner wrote: > If anyone is motivated to write a perfect (or at least better) glossary, > please do it! We don't want a perfect glossary, we want one we agree on, that defines terms consistently with the way they're used in the PEP. However, what I read

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread Victor Stinner
>> Ok ok, resolution / accuracy / precision are confusing (or at least >> not well known concepts). > > Maybe not to us, but in fields like astronomy and mechanical > engineering there are commonly accepted definitions: I was just talking of the name of the time.perf_counter() function: "perf_coun

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread Stephen J. Turnbull
On Wed, Apr 18, 2012 at 8:25 AM, Victor Stinner wrote: > Ok ok, resolution / accuracy / precision are confusing (or at least > not well known concepts). Maybe not to us, but in fields like astronomy and mechanical engineering there are commonly accepted definitions: Resolution: the smallest dif

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread Cameron Simpson
On 17Apr2012 08:35, R. David Murray wrote: | On Tue, 17 Apr 2012 14:48:22 +1000, Cameron Simpson wrote: | > On 16Apr2012 01:25, Victor Stinner wrote: | > | I suppose that most people don't care that "resolution" and | > | "precision" are different things. | > | > If we're using the same definit

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread Cameron Simpson
On 18Apr2012 00:18, Chris Angelico wrote: | On Tue, Apr 17, 2012 at 2:48 PM, Cameron Simpson wrote: | > On 16Apr2012 01:25, Victor Stinner wrote: | > | I suppose that most people don't care that "resolution" and | > | "precision" are different things. | > | > If we're using the same definitions

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread Victor Stinner
> I think what the user cares about is "what is the smallest tick that > this clock result will faithfully represent?".  If the number of bits > returned is larger than the clock accuracy, you want the clock accuracy. > If the number of bits returned is smaller than the clock accuracy, > you want t

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread Chris Angelico
On Tue, Apr 17, 2012 at 2:48 PM, Cameron Simpson wrote: > On 16Apr2012 01:25, Victor Stinner wrote: > | I suppose that most people don't care that "resolution" and > | "precision" are different things. > > If we're using the same definitions we discussed offline, where > >  - resolution is the un

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread R. David Murray
On Tue, 17 Apr 2012 14:48:22 +1000, Cameron Simpson wrote: > On 16Apr2012 01:25, Victor Stinner wrote: > | I suppose that most people don't care that "resolution" and > | "precision" are different things. > > If we're using the same definitions we discussed offline, where > > - resolution is

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-16 Thread Cameron Simpson
On 16Apr2012 01:25, Victor Stinner wrote: | I suppose that most people don't care that "resolution" and | "precision" are different things. If we're using the same definitions we discussed offline, where - resolution is the units the clock call (underneath) works in (for example, nanosecon