rtl_test: Refactoring and optimization for PPM error measurement.

Hello

after talking with keenerd I removed the windows port