The orifice size needs to be fairly consistent, which requires talented artisans, but some variation is unavoidable, so they have sands of different coarseness for varying sizes. The timing is calibrated by adding/removing san [1]. Scroll down to "The Manufacturing Process" in the footnote link.
1 - http://www.enotes.com/how-products-encyclopedia/hourglass