aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}