you could just use '\r' to make the cursor return back to the beginning of the line
int cookTime(int time) {
int second, minute;
for (minute = time; minute > -1; minute--) {
for (second = 59; second > -1; second--) {
sleep(1);
printf ("\r%2i : %2i", minute, second);
}
}
}