bug report: [ #447945 ] time.time() is not non-decreasing
Aahz Maruch
aahz at panix.com
Tue Aug 7 12:48:53 EDT 2001
In article <mailman.996962708.27994.python-list at python.org>,
<zooko at zooko.com> wrote:
>
>So I wrote a monotonically-increasing timer[2], which was a bit
>trickier than I thought it would be. It comes with its own unit test,
>and if you have RunTests[3] then you can execute `timerutil.py' itself
>to run all of its tests. The application which needs monotonically
>increasing timestamps is the `DoQ'[4] (the "do queue") -- a simple
>event scheduler that we use in Mojo Nation.
I suggest using Python longs instead (not ints -- they only provide 31
bits of precision on most platforms for your purpose).
But I think you've got an algorithmic problem: you said you wanted to
run certain events in a sequence. Why aren't you combining all of those
events into a single package?
--
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"activist for accuracy" --SJM
More information about the Python-list
mailing list