Chemical clocks on the basis of rotating waves. Measuring irrational numbers from period ratios