Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3
nml
0001-Fix-52-time.clock-has-been-removed-in-pyth...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-52-time.clock-has-been-removed-in-python-3.8-53.patch of Package nml
From e706f93926983b4c700953c92bdb35cdd5ffa2f0 Mon Sep 17 00:00:00 2001 From: glx22 <glx22@users.noreply.github.com> Date: Sun, 20 Oct 2019 11:05:25 +0200 Subject: [PATCH] Fix #52: time.clock() has been removed in python 3.8 (#53) --- nml/generic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nml/generic.py b/nml/generic.py index ce064b6..8ee602f 100644 --- a/nml/generic.py +++ b/nml/generic.py @@ -295,7 +295,7 @@ def clear_progress(): hide_progress() if (progress_message is not None) and (verbosity_level >= VERBOSITY_TIMING): - print("{} {:.1f} s".format(progress_message, time.clock() - progress_start_time)) + print("{} {:.1f} s".format(progress_message, time.process_time() - progress_start_time)) progress_message = None progress_start_time = None @@ -324,12 +324,12 @@ def print_progress(msg, incremental = False): progress_message = msg if incremental: - t = time.clock() + t = time.process_time() if (progress_update_time is not None) and (t - progress_update_time < 1): return progress_update_time = t else: - progress_start_time = time.clock() + progress_start_time = time.process_time() print_eol(msg) -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor