Clockwork mechanism