This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All time related data in loopingcall are in seconds. Therefore creating datetime objects only adds overhead to the module. This patch replaces all datetime objects with utc timestamps in loopingcall. The rational of using timeutils was disscussed here, https://review.openstack.org/#/c/16310/1..5/openstack/common/loopingcall.py,cm which was to use set_time_override to avoid actual time delays in test scripts. Now that set_time_override is deprecated, we no longer need to use timeutils. A lambda function returning time.time() was declared due to mock collisions with time.time() called in the logging module. Changes to test scripts were made accordingly. Change-Id: I38749f3c7bfff23164481b2341d56154ba737765
- Loading branch information
Zhongyue Luo
committed
Jul 2, 2014
1 parent
fd90c34
commit ab5d5f1
Showing
2 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters