11 lines
195 B
JavaScript
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;
|
|
}; |