Skip to content

Commit

Permalink
build-llvm.py: Print total script duration
Browse files Browse the repository at this point in the history
Closes: ClangBuiltLinux#221
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jan 22, 2023
1 parent 2681b90 commit 51671bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,8 @@ def has_4f158995b9cddae(llvm_folder):


def main():
script_start = time.time()

root_folder = pathlib.Path(__file__).resolve().parent

args = parse_parameters(root_folder)
Expand Down Expand Up @@ -1621,6 +1623,10 @@ def main():
root_folder)
do_multistage_build(args, dirs, env_vars)

time_string = str(
datetime.timedelta(seconds=int(time.time() - script_start)))
print(f"Total script duration: {time_string}")


if __name__ == '__main__':
main()

0 comments on commit 51671bc

Please sign in to comment.