Update clock.c

convert time