5 lines
111 B
TypeScript
5 lines
111 B
TypeScript
export default function tsNow(seconds?: true) {
|
|
const t = Date.now();
|
|
return seconds ? t / 1000 | 0 : t;
|
|
}
|