summaryrefslogtreecommitdiff
path: root/SCons/SConsign.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-02-09 07:56:56 -0700
committerMats Wichmann <mats@linux.com>2021-02-09 07:56:56 -0700
commit0281d398d5d3369807b6a2aee1ede45c53b3c8e6 (patch)
tree2cb70c56db9221f5435725084a30e80d55184ed8 /SCons/SConsign.py
parentfb7bb3f969698cbbcdb5af7c97f33c4529ba2e09 (diff)
downloadscons-git-0281d398d5d3369807b6a2aee1ede45c53b3c8e6.tar.gz
[PR #3884] fix some timinng errors from initial submit
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/SConsign.py')
-rw-r--r--SCons/SConsign.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/SCons/SConsign.py b/SCons/SConsign.py
index c488ef958..6cb088be9 100644
--- a/SCons/SConsign.py
+++ b/SCons/SConsign.py
@@ -103,7 +103,7 @@ def write():
global sig_files
if print_time():
- time1 = time.perf_counter()
+ start_time = time.perf_counter()
for sig_file in sig_files:
sig_file.write(sync=0)
@@ -122,8 +122,8 @@ def write():
closemethod()
if print_time():
- time2 = time.perf_counter()
- print('Total SConsign sync time: %f seconds' % (time2 - time1))
+ elapsed = time.perf_counter() - start_time
+ print('Total SConsign sync time: %f seconds' % elapsed)
class SConsignEntry: