rtl_test: Query frequency only once.

Also check ppm_gettime return value and print an error on failure.