writes time and price until ^c