How to calculate attack speed

Hi there. I’m doing a solo project for self-learning in which I’m trying to do what I can to recreate League of Legends. In the original game, they use a system that is attack speed (ie attacks per second). My question is how would you implement the cooldown you’d need? For example, a 1.14 attack speed means 1.14 attacks per second. This may be a bit of a brainfart on my part but I would very much appreciate some assistance.

I dont know how LoL works but i would assume that, you can create time float: time += Time.deltaTime, when clicked attack button, and if(time >= 1) {EnemyHealth -= 1.14 * DamagePerAttack } so everysecond player hold attack button, you do damage. i hope i somehow helped