Differentiate between mouse click and mouse hold

I have some functions I need to fire only if the user clicks the mouse, but not if they click and hold. It’s equivalent to tap on mobile but I don’t know how to do it for a desktop environment. I know with mobile you can do it using the Input.GetTouch function and examining tapCount etc, but how can I reliably detect a single click on PC? Thanks!

You can’t differentiate between click and hold on mouseDown, but you can on mouseUp.

Every time the mouse button is pressed, (Input.GetMouseButtonDown() I believe), store the time and then on mouse release, check if the interval was short enough to count as a click (.25-.5 sec)

This is how the touch vs. hold handling is done as well, it’s just handled automatically for you.