Projects
Eulaceura:Factory
mingw-wine-gecko
_service:obs_scm:0001-mozbuild-Use-time.process...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-mozbuild-Use-time.process_time-instead-of-time.clock.patch of Package mingw-wine-gecko
From 7b43ad1508fcb1c5500e08271717c183004e8c2d Mon Sep 17 00:00:00 2001 From: Jacek Caban <jacek@codeweavers.com> Date: Tue, 31 Dec 2019 00:53:27 +0100 Subject: [PATCH 01/12] mozbuild: Use time.process_time() instead of time.clock(). Signed-off-by: Jacek Caban <jacek@codeweavers.com> --- python/mozbuild/mozbuild/config_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mozbuild/mozbuild/config_status.py b/python/mozbuild/mozbuild/config_status.py index a34a978207da..274bc49d2d62 100644 --- a/python/mozbuild/mozbuild/config_status.py +++ b/python/mozbuild/mozbuild/config_status.py @@ -132,7 +132,7 @@ def config_status(topobjdir='.', topsrcdir='.', if 'WRITE_MOZINFO' in os.environ: write_mozinfo(os.path.join(topobjdir, 'mozinfo.json'), env, os.environ) - cpu_start = time.clock() + cpu_start = time.process_time() time_start = time.time() # Make appropriate backend instances, defaulting to RecursiveMakeBackend, @@ -170,7 +170,7 @@ def config_status(topobjdir='.', topsrcdir='.', print(summary, file=sys.stderr) execution_time += summary.execution_time - cpu_time = time.clock() - cpu_start + cpu_time = time.process_time() - cpu_start wall_time = time.time() - time_start efficiency = cpu_time / wall_time if wall_time else 100 untracked = wall_time - execution_time -- 2.24.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2