Saturday, September 21, 2013

there will now be a whopping great intermission

JavaScript ten second pause:

var theFuture = new Date();
theFuture.setSeconds(theFuture.getSeconds() + 10);
while (new Date() < theFuture) {
}

No comments:

Post a Comment