Return to Snippet

Revision: 1763
at November 10, 2006 00:06 by whitetiger


Updated Code
function pause(millisecondi)
{
    var now = new Date();
    var exitTime = now.getTime() + millisecondi;

    while(true)
    {
        now = new Date();
        if(now.getTime() > exitTime) return;
    }
}

Revision: 1762
at November 9, 2006 23:55 by whitetiger


Initial Code
function pause(millisecondi)
{
    var now = new Date();
    var exitTime = now.getTime() + millisecondi;

    while(true)
    {
        now = new Date();
        if(now.getTime() > exitTime) return;
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
Javascript - Sleep

Initial Tags
http, javascript, js, image, html, script, images, web

Initial Language
JavaScript