Nir Soffer has posted comments on this change.
Change subject: schedule: Introduce scheduling library
......................................................................
Patch Set 24: Verified+1
This version adds a clock argument so the caller can use utils.monotonic_clock if desired.
The tests were update to test both time.time() and utils.monotonic_time().
The default clock is still time.time() since it is more precise then utils.monotonic_time. When we upgrade to Python 3 the default should be replaced to time.monotonic().
Verified using the tests.
--
To view, visit
http://gerrit.ovirt.org/29607
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3764806d93bd37c3b5924080eb5ae4d29e4f4e0
Gerrit-PatchSet: 24
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer
nsoffer@redhat.com
Gerrit-Reviewer: Adam Litke
alitke@redhat.com
Gerrit-Reviewer: Allon Mureinik
amureini@redhat.com
Gerrit-Reviewer: Antoni Segura Puimedon
toni@midokura.com
Gerrit-Reviewer: Dan Kenigsberg
danken@redhat.com
Gerrit-Reviewer: Federico Simoncelli
fsimonce@redhat.com
Gerrit-Reviewer: Francesco Romani
fromani@redhat.com
Gerrit-Reviewer: Martin Sivák
msivak@redhat.com
Gerrit-Reviewer: Michal Skrivanek
michal.skrivanek@redhat.com
Gerrit-Reviewer: Nir Soffer
nsoffer@redhat.com
Gerrit-Reviewer: Saggi Mizrahi
smizrahi@redhat.com
Gerrit-Reviewer: Yoav Kleinberger
ykleinbe@redhat.com
Gerrit-Reviewer: automation@ovirt.org
Gerrit-Reviewer: jian wang
wjian84@gmail.com
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No