Skip to content

Instantly share code, notes, and snippets.

@seungjin
Created October 6, 2010 04:03
Show Gist options
  • Save seungjin/612803 to your computer and use it in GitHub Desktop.
Save seungjin/612803 to your computer and use it in GitHub Desktop.
console.log("timer with node.js");
var now = new Date()
console.log(now);
var alarm = function(name){
var now = new Date()
console.log(now);
console.log(name);
console.log("alarm!, alarm!, alarm!, alarm!");
}
a = setTimeout(alarm,10000,"hi")
@seungjin
Copy link
Author

seungjin commented Oct 6, 2010

who's still using crontab? I just use node.js's setTimer() and its callback function instead of crontab.. it is so coooool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment