aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-05 17:20:18 -0800
committerChristian C <cc@localhost>2025-03-05 17:20:18 -0800
commit83be4936d52e7d22720f3e3e40b13eee5cc08c32 (patch)
treeeffd5f3cd9892b36e536a17b24419db8ad23cbe4 /src
parent54f5d53bb92359d55c5e3a62428d3c79afdb3a53 (diff)
Time entire execution
Diffstat (limited to 'src')
-rw-r--r--src/main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index cf1709d..1709452 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}