Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions
 

Index | Next | Previous | View Flat


victor.stinner at gmail

Apr 28, 2012, 1:32 PM


Views: 354
Permalink
Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions [In reply to]

>> As a thin wrapper, adding it to the time module was pretty much
>> uncontroversial, I think. The PEP proposes cross-platform
>> functions with consistent semantics, which is where a discussion was
>> needed.
>
> True, but does this mean clock_gettime and friends only exist on
> POSIX? Shouldn't they be in the os or posix module then? I guess I'm
> fine with either place but I don't know if enough thought was put into
> the decision. Up until now the time module had only cross-platform
> functions (even if clock()'s semantics vary widely).

The os module is big enough. Low level networks functions are not in
the os module, but in the socket module.

Not all functions of the time module are always available. For
example, time.tzset() is not available on all platforms. Another
example, the new time.monotonic() is not available on all platforms
;-)

Oh, I forgot to mention that time.clock_*() functions are not always
available in the doc.

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
[RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 15, 2012, 8:15 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 15, 2012, 8:18 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions mal at egenix Apr 15, 2012, 8:36 AM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 15, 2012, 10:40 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 15, 2012, 4:25 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions anacrolix at gmail Apr 16, 2012, 2:49 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 16, 2012, 3:38 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions phd at phdru Apr 16, 2012, 3:46 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions solipsis at pitrou Apr 16, 2012, 4:16 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 16, 2012, 4:22 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions sumerc at gmail Apr 17, 2012, 12:23 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 17, 2012, 5:06 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 17, 2012, 5:50 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 20, 2012, 5:38 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 23, 2012, 4:30 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 27, 2012, 3:38 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions steve at pearwood Apr 27, 2012, 5:50 PM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 27, 2012, 6:23 PM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 27, 2012, 8:40 PM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 28, 2012, 1:48 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 28, 2012, 12:40 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 28, 2012, 7:02 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions solipsis at pitrou Apr 28, 2012, 7:51 AM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 28, 2012, 8:57 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 28, 2012, 1:32 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions eric at trueblade Apr 28, 2012, 4:20 PM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 28, 2012, 6:21 PM
        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions larry at hastings Apr 29, 2012, 1:41 AM
            Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions eric at trueblade Apr 29, 2012, 2:01 AM
                Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions larry at hastings Apr 29, 2012, 2:12 AM
                    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions steve at pearwood Apr 29, 2012, 5:29 AM
                        Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 29, 2012, 7:37 AM
                    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions solipsis at pitrou Apr 29, 2012, 5:38 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions victor.stinner at gmail Apr 28, 2012, 6:26 PM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions solipsis at pitrou Apr 29, 2012, 5:39 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 29, 2012, 7:40 AM
    Re: [RFC] PEP 418: Add monotonic time, performance counter and process time functions guido at python Apr 29, 2012, 7:49 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.