improved paste delay

changed code around to use better, more accurate, timer than sleep() and
it also doesn't lock up UI thread.