pipictest.c count clock cycles and read analog inputs.

Print time stamp for longer testing periods.