Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
508 B
Text
17 lines
508 B
Text
export const hrtime = /*@__PURE__*/ Object.assign(function hrtime(startTime) {
|
|
const now = Date.now();
|
|
const seconds = Math.trunc(now / 1e3);
|
|
const nanos = now % 1e3 * 1e6;
|
|
if (startTime) {
|
|
let diffSeconds = seconds - startTime[0];
|
|
let diffNanos = nanos - startTime[0];
|
|
if (diffNanos < 0) {
|
|
diffSeconds = diffSeconds - 1;
|
|
diffNanos = 1e9 + diffNanos;
|
|
}
|
|
return [diffSeconds, diffNanos];
|
|
}
|
|
return [seconds, nanos];
|
|
}, { bigint: function bigint() {
|
|
return BigInt(Date.now() * 1e6);
|
|
} });
|