Skip to content

Commit

Permalink
add time it
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-tushevg committed Sep 7, 2016
1 parent 955d060 commit 33eaaee
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,31 @@
//

#include <stdio.h>
#include <time.h>

int main(int argc, const char * argv[]) {
// insert code here...
printf("Hello, World!\n");
#include "config.h"
#include "htsutils.h"

int main(int argc, const char * argv[])
{
Settings props;

/* parse input settings */
if (parseSettings(argc, argv, &props))
{
help();
return EXIT_FAILURE;
}

clock_t begin = clock();

parseBAM(&props);

clock_t end = clock();

double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;

printf("Time: %.4f sec\n", time_spent);

return 0;
}

0 comments on commit 33eaaee

Please sign in to comment.