Bug temps de calcul

Le temps de calcul était affiché pour le bilinéaire seulement
This commit is contained in:
ℝλℙℍλΣʟ 2020-11-12 23:42:22 +01:00 committed by GitHub
parent 50e4c082d8
commit 3bae742e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,8 +147,8 @@ class SRGUI():
t1 = time.time()
type2func[type]()
t2 = time.time()
except: self.label["bil"].config(text="Erreur", fg="red")
else: self.label["bil"].config(text="Temps de calcul : %0.2fs" % (t2 - t1), fg="gray")
except: self.label[type].config(text="Erreur", fg="red")
else: self.label[type].config(text="Temps de calcul : %0.2fs" % (t2 - t1), fg="gray")
thfunc = Thread(target=thread_func)
thfunc.setDaemon(True)