Merge lp:~smoser/cloud-init/log_time into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 854 |
Proposed branch: | lp:~smoser/cloud-init/log_time |
Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
Diff against target: |
163 lines (+55/-16) 6 files modified
ChangeLog (+3/-0) bin/cloud-init (+3/-1) cloudinit/config/cc_growpart.py (+2/-1) cloudinit/config/cc_resizefs.py (+5/-6) cloudinit/sources/DataSourceAzure.py (+7/-8) cloudinit/util.py (+35/-0) |
To merge this branch: | bzr merge lp:~smoser/cloud-init/log_time |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joshua Harlow (community) | Approve | ||
Review via email: mp+177666@code.launchpad.net |
Description of the change
add util.log_time helper
The reason for this is that more and more things I was wanting to be able to
see how long they took. This puts that time logic into a single place. It
also supports from /proc/uptime as the timing mechanism.
While reading /proc/uptime is almost certainly slower than time.time(), it does
give millisecond granularity and is not affected by 'ntpdate' having run in
between the two events.
To post a comment you must log in.
LGTM!