Liferay.Loader.define("commerce-dashboard-web$d3-timer@1.0.9/src/interval", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import { Timer, now } from "./timer";

    export default function (callback, delay, time) {
      var t = new Timer(),
          total = delay;
      if (delay == null) return t.restart(callback, delay, time), t;
      delay = +delay, time = time == null ? now() : +time;
      t.restart(function tick(elapsed) {
        elapsed += total;
        t.restart(tick, total += delay, time);
        callback(elapsed);
      }, delay, time);
      return t;
    }
  }
});
//# sourceMappingURL=interval.js.map