You need to check out the BlinkWithoutDelay() example to see how to track elapsed time without using delay(). When you detect the single button click, you record the time. After a certain amount of time, if the button has been clicked you do your double click routine. If it has not, you do your single click routine.