[Python-Dev] PEP 418: Add monotonic clock

Paul Moore p.f.moore at gmail.com
Tue Mar 27 09:14:11 CEST 2012


On 27 March 2012 01:23, Scott Dial <scott+python-dev at scottdial.com> wrote:
> If you want to define new clocks, then I wish you would use the same
> definitions that C++0x is using. That is:
>
>  system_clock = wall clock time
>  monotonic_clock = always goes forward but can be adjusted
>  steady_clock = always goes forward and cannot be adjusted
>  high_resolution_clock = steady_clock || system_clock

+1. This seems like an ideal case for following prior art in designing
a Python API.

Paul


More information about the Python-Dev mailing list