Single/double click

Hello all,
I was wondering if it is possible to make a button which does one thing when clicked once and then do another if double clicked?
I’m sure it involves some sort of timer to calculate the time from one click to the other but I’m having problems building that code and getting the two separate actions to work.

Any help?
Thx
BRb