First, players must understand how the tick command actually works. Tick is the basic unit of time in Minecraft. Every tick is around 0.05 seconds in real life. Hence, each second has 20 ticks in it.
You can get a command block in your Minecraft Java or Bedrock world using cheats and a special chat command.