summaryrefslogtreecommitdiffstats
path: root/SCons/SConsign.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-02-09 14:56:56 (GMT)
committerMats Wichmann <mats@linux.com>2021-02-09 14:56:56 (GMT)
commit0281d398d5d3369807b6a2aee1ede45c53b3c8e6 (patch)
tree2cb70c56db9221f5435725084a30e80d55184ed8 /SCons/SConsign.py
parentfb7bb3f969698cbbcdb5af7c97f33c4529ba2e09 (diff)
downloadSCons-0281d398d5d3369807b6a2aee1ede45c53b3c8e6.zip
SCons-0281d398d5d3369807b6a2aee1ede45c53b3c8e6.tar.gz
SCons-0281d398d5d3369807b6a2aee1ede45c53b3c8e6.tar.bz2
[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 c488ef9..6cb088b 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: