system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5 How does digital clock work?

How does digital clock counting time? Not display i wonder how they can know how much time pass?
gpt
There is a special elements called a quartz. It is the same thing that beach sand is made of. It has a special property of converting different Energies. With pressure it turns into heat, with light it splits light, and with electricity it creates a vibration.

Some quartz crystals make a very stable vibration. Imagine one of these quartz could do 1000 times the second perfectly. We learned how to measure that has had to turn that into a clock.

You may be familiar with counting seconds as one one thousand or one alligator. Running electricity through a piece of quartz crystal splits one second into to one thousand beats per second. By making a device that can separate every 1000 beats we can create a stable clock.