UNPKG

planck

Version:

2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development

16 lines (13 loc) 238 B
/** @internal */ export const now = function (): number { return Date.now(); }; /** @internal */ export const diff = function (time: number): number { return Date.now() - time; }; /** @internal */ export default { now, diff, };