At some unknown point during the twelfth century the problem of waking up at night at the right time to ring the bell was solved, because, in a new version of the Rule for Cistercian monks, it says that the sacrist 'roused by the sound of the clock shall ring the church bell'.
Source: wiktionary