"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isDateBefore = exports.isDateAfter = exports.getHighResolutionTimestamp = void 0;
const isDateBefore = (date1, date2) => {
  return new Date(date1) < new Date(date2);
};
exports.isDateBefore = isDateBefore;
const isDateAfter = (date1, date2) => {
  return new Date(date1) > new Date(date2);
};
exports.isDateAfter = isDateAfter;
const getHighResolutionTimestamp = () => {
  const milliseconds = Date.now();
  const microseconds = Math.floor(performance.now() * 10);
  return `${milliseconds}${microseconds.toString().padStart(6, '0')}`;
};
exports.getHighResolutionTimestamp = getHighResolutionTimestamp;
//# sourceMappingURL=dateComparison.js.map