Code to detect single or double click

you're right. the OP asked about a PC.
thought this was an Arduino forum