I'm guessing you're trying to place the condition after a trigger, which doesn't work logically. If the mouse has been clicked, for example, that code runs once. Therefore, every x seconds wouldn't work there.
Try something else, like if it was the mouse you were using, 'if left mouse is down' should work instead.