Help with button press and loop run

I'm working with button switches these days. I want to detect the short press and long press of the button, and during the long press I need to run a count down. (Like a timer) Can anyone help me with this. Sorry I'm a total newbie to programming and Arduino. Thank you in advance.

How does this post differ significantly from this one:
https://forum.arduino.cc/index.php?topic=617062.msg4181495#msg4181495
Cross-posting sucks.

Study debounce.
Make 2 timers

PaulS:
How does this post differ significantly from this one:
Long button press activity - Programming Questions - Arduino Forum
Cross-posting sucks.

I wanted to delete this post, but didn't allow me to delete it. Sorry for the inconvenience.

jeromesack:
I wanted to delete this post, but didn't allow me to delete it. Sorry for the inconvenience.

You could (still use)/(have used) the Report to Moderator link to make it go poof.