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:48 AM


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

> 3) The dict returned by get_clock_info includes an optional key,
> "is_adjusted". Why is it optional?

More complete answer.

Rules used to fill the is_adjusted flag:

- System clock: is_adjusted=1 because the clock can be set manually
by the system administrator, except on Windows: is_adjusted is 0 if
GetSystemTimeAdjustment() returns isTimeAdjustmentDisabled=1
- Process time: is_adjusted=0 because I don't know an OS where the
process time can be modified
- Monotonic clocks: is_adjusted=0 on Windows, Mac OS X and Solaris,
is_adjusted=1 on Linux, it is not set otherwise. We may also set
is_adjusted to 0 on other OSes and so the key would not be optional
anymore.

Said differently, is_adjusted is only 1 for system clocks and for the
monotonic clock on Linux.

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.