diff options
author | Christian C <cc@localhost> | 2025-03-05 17:20:18 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-05 17:20:18 -0800 |
commit | 83be4936d52e7d22720f3e3e40b13eee5cc08c32 (patch) | |
tree | effd5f3cd9892b36e536a17b24419db8ad23cbe4 | |
parent | 54f5d53bb92359d55c5e3a62428d3c79afdb3a53 (diff) |
Time entire execution
-rw-r--r-- | src/main.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -21,17 +21,8 @@ int main(int argc, char** argv) { + TIME(ts_g_start); struct AVLNode* root = NULL; - root = insert_mask_alloc(root, 2); - root = insert_mask_alloc(root, 5); - root = insert_mask_alloc(root, 1); - root = insert_mask_alloc(root, 3); - root = insert_mask_alloc(root, 4); - printf("Inorder traversal of AVL tree: "); - print_label(root); - printf("\n"); - free_avl_tree_nodes(root); - root = NULL; //----------------------------------------------- //-LIST-FILES-IN-DIRECTORY----------------------- //----------------------------------------------- @@ -194,5 +185,7 @@ int main(int argc, char** argv) free(masks); } #endif + TIME(ts_g_end); + printf("Finished in %f ms\n", 1000*diff_time(&ts_g_end, &ts_g_start)); return 0; } |