You can probably just create a function that measures a single click with a timestamp and looks that the next click is within a given time interval. As a workaround…
… this could would be a wrapper to your code.
If you want to fire a regular action stack you could probably just fire a custom behavior trigger whatever stack you want.