I've got an app that allows user to type in text and does an auto-search based on what the user typed. But if we do it after every key stroke, the early keystrokes lag because the search returns a lot.

So. Is there a way to determine how long ago the user last pressed a key?