2015-11-09 00:34:17 +00:00
|
|
|
exports.getCurrentTimeMs = function() {
|
|
|
|
return new Date().getTime();
|
2015-11-24 23:24:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.setIntervalNoDelay = function(func, delay) {
|
|
|
|
var task = setInterval(func, delay);
|
|
|
|
|
|
|
|
func();
|
|
|
|
|
|
|
|
return task;
|
2015-11-09 00:34:17 +00:00
|
|
|
};
|