Add a time handler.