Metric bearings are most commonly measured with a micrometer, which is generally considered the most accurate method. Make sure the micrometer is properly calibrated, then place it on the bearing so the spindle touches the outer edge. Slowly turn the micrometer until the spindle just begins to contact the inner edge, then take and record the reading. Accurate measurement is important so the bearings fit properly and function correctly.
If a micrometer is not available, callipers or a ruler can provide fairly accurate measurements. With a ruler, line it up with the outer edge of the bearing and mark where the inner edge meets the ruler, then measure from that point to the end of the ruler and record the result. With a calliper, calibrate it first, open it slightly larger than the bearing, then slowly close it until it barely contacts the inner edge and take the reading. Take multiple measurements and use the average as the final metric bearing size.