test/ring: use division for cycle count calculation