Skip to content

Commit 8460641

Browse files
committed
add timers samples
1 parent edf0f82 commit 8460641

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

samples/node/timers/timers.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
console.log('Now: ' + new Date().toTimeString());
4+
5+
setTimeout(function () {
6+
console.log('Run at ' + new Date().toTimeString());
7+
}, 1500);
8+
9+
setInterval(function () {
10+
console.log('Schedule at ' + new Date().toTimeString());
11+
}, 3000);

0 commit comments

Comments
 (0)