This code was written by Marcel of http://www.nodebeginner.org/ He’s a smart guy and I recommend you buy his book on node if you want some great info on node (not to mention the excellent tutorial on the same site. Here is the code:
var startTime = new Date().getTime();
while(new Date().getTime() < startTime + ms);
sleep(10000); //10000 = 10 seconds, in milliseconds.