From f234d846b6ee5675311acc25aadf5aeb0f648fd7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 9 Feb 2016 23:28:58 +0000 Subject: [PATCH] Added timer --- INSTALL_ALL_THE_THINGS | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/INSTALL_ALL_THE_THINGS b/INSTALL_ALL_THE_THINGS index 4939e1e..24e4f19 100755 --- a/INSTALL_ALL_THE_THINGS +++ b/INSTALL_ALL_THE_THINGS @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import os +import os, time from scripts.install_dotfiles import * EXEC_ORDER = [ @@ -22,9 +22,14 @@ EXEC_ORDER = [ if __name__ == '__main__': + t0 = "temp_time" if os.geteuid() != 0: print("Please run as root!") elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y': + t0 = time.time() for script in EXEC_ORDER: script() - print("\n>>{} Executed.\n".format(script.__name__)) + print("\n>> {} Exe1cuted.\n".format(script.__name__)) + t1 = time.time() + print("Execution Complete") + print("Took {} seconds.".format(t1 - t0))