One way to implement a clock using a timer integrated circuit:
https://www.youtube.com/watch?v=QfnkuXDf6NE