Implement clock(n)