How to create a clock?

I encountered the same problem as you, how did you solve it?