Skip to content

Commit

Permalink
replacing clock printing with macro
Browse files Browse the repository at this point in the history
  • Loading branch information
nkane committed Nov 19, 2018
1 parent 50a8a31 commit f7339cb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions algorithms/grokking-algorithms/lib/algorithms.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ Linear_Search_Int(int *buffer, int size, int search)
}
}
stop_clock;
Spent_Time = time_delta(End_Time, Start_Time);
print_time(Spent_Time);
clock_print;
return found;
}

Expand Down Expand Up @@ -96,8 +95,7 @@ Binary_Search_Int(int *buffer, int size, int search)
}
}
stop_clock;
Spent_Time = time_delta(End_Time, Start_Time);
print_time(Spent_Time);
clock_print;
return found;
}

Expand Down Expand Up @@ -129,8 +127,7 @@ Bubble_Sort(int *buffer, int size)
}
}
stop_clock;
Spent_Time = time_delta(End_Time, Start_Time);
print_time(Spent_Time);
clock_print;
return 0;
}

Expand Down

0 comments on commit f7339cb

Please sign in to comment.