From 868887b5cfaf3d1611288233e9e8200d3a6aa949 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 29 Dec 2022 22:41:48 +0200 Subject: [PATCH] Updated for time --- slpkg/slackbuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index fdcc284e..94fe9d2b 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -38,7 +38,6 @@ class Slackbuilds: def execute(self): """ Starting build or install the slackbuilds. """ - start = time.time() color = self.colors() yellow = color['yellow'] cyan = color['cyan'] @@ -53,9 +52,10 @@ class Slackbuilds: self.view_before_build() + start = time.time() self.download_slackbuilds_and_build() - elapsed_time = time.time() - start + print(f'{yellow}Finished time:{endc}', time.strftime(f'{cyan}%H:%M:%S{endc}', time.gmtime(elapsed_time)))