Minetrack/lib/util.js
2015-11-24 17:24:17 -06:00

11 lines
195 B
JavaScript

exports.getCurrentTimeMs = function() {
return new Date().getTime();
};
exports.setIntervalNoDelay = function(func, delay) {
var task = setInterval(func, delay);
func();
return task;
};