Generic magic wands datapack to learn

I'm making a datapack with wands. So far, I managed to make sure you have to keep pressing your right click to charge the wand before using it, if you stop, you have to restart. What I would like to do is add a cooldown but I don't really know how I could make it
Continue to help post