show when timer stops
This commit is contained in:
parent
ff70e7df27
commit
9f99802fae
@ -232,11 +232,12 @@ int main (int argc, char **argv) {
|
|||||||
// quick sort
|
// quick sort
|
||||||
}
|
}
|
||||||
else if (algoritmo == 2) {
|
else if (algoritmo == 2) {
|
||||||
fprintf(stdout, "Bubble sort corriendo...\n");
|
fprintf(stdout, "Bubble sort corriendo... ");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
start_timer();
|
start_timer();
|
||||||
bubble_sort(array, n);
|
bubble_sort(array, n);
|
||||||
stop_timer();
|
stop_timer();
|
||||||
|
fprintf(stdout, "done\n");
|
||||||
}
|
}
|
||||||
else if (algoritmo == 3) {
|
else if (algoritmo == 3) {
|
||||||
// bitonic sort
|
// bitonic sort
|
||||||
|
Loading…
Reference in New Issue
Block a user