Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sleep

function sleep(ms) {
    var start = new Date().getTime();
    while (new Date().getTime() < start + ms);
}
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #js #sleep
ADD COMMENT
Topic
Name
9+3 =