measure and print how long notes generation takes

This commit is contained in:
Akbar Rahman 2024-01-02 15:41:19 +00:00
parent 44bea9c982
commit 3a9cc4c0f8
Signed by: alvierahman90
GPG Key ID: 6217899F07CA2BDF

View File

@ -437,6 +437,8 @@ def generate_tag_browser(output_dir):
def main(args):
""" Entry point for script """
start_time = time.time()
global LICENSE
global FILEMAP
@ -465,7 +467,7 @@ def main(args):
root_properties = FILEMAP.get(root)
root_properties['dst_path']['raw'].mkdir(parents=True, exist_ok=True)
pprint.pprint(root_properties)
#pprint.pprint(root_properties)
html = JINJA_TEMPLATE_INDEX.render(
gronk_commit=GRONK_COMMIT,
title=root_properties.get('title', ''),
@ -502,6 +504,9 @@ def main(args):
generate_tag_browser(args.output_dir.joinpath('tags'))
generate_permalink_page(args.output_dir)
elapsed_time = time.time() - start_time
print(f"generated notes {elapsed_time=}")
return 0