A stopwatch for the terminal in C