

//#region src/utils/timestamp.ts
function timestamp() {
	let time = Date.now();
	const bytes = [];
	for (let i = 0; i < 8; i++) {
		const byte = time & 255;
		bytes.push(byte);
		time = (time - byte) / 256;
	}
	return Uint8Array.from(bytes).reverse();
}
/**
* Returns the current time in seconds
*/
function nowInSeconds() {
	return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
}

//#endregion
export { timestamp as default, nowInSeconds };
//# sourceMappingURL=timestamp.mjs.map