This is not godot, its made in Game Maker Studio 2
The way i did it is just have a variable for roundTimer that ticks down and compare it to constants like regularWindow, perfectWindow ect. and if the round timer is below those windows it can be checked for actions and stuff.