show when timer stops

This commit is contained in:
Chris Cromer 2018-11-12 18:31:00 -03:00
parent ff70e7df27
commit 9f99802fae
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -232,11 +232,12 @@ int main (int argc, char **argv) {
// quick sort
}
else if (algoritmo == 2) {
fprintf(stdout, "Bubble sort corriendo...\n");
fprintf(stdout, "Bubble sort corriendo... ");
fflush(stdout);
start_timer();
bubble_sort(array, n);
stop_timer();
fprintf(stdout, "done\n");
}
else if (algoritmo == 3) {
// bitonic sort