I am new to Javascirpt. What exactly should I add to the code below so thatthis.callHandler('ok'); will only run after 10 seconds
Window_NameInput.prototype.processHandling = function() {
    if (this.isOpen() && this.active) {
        this.callHandler('ok');
    }
};
Any help is appreciated Thanks in advance