Improve multiplayer
This commit is contained in:
parent
220b20476f
commit
37954e2ef1
29 changed files with 321 additions and 267 deletions
5
backend/src/helper/get-time-in-milliseconds.ts
Normal file
5
backend/src/helper/get-time-in-milliseconds.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const getTimeInMilliseconds = (): number => {
|
||||
const [seconds, nanoSeconds] = process.hrtime();
|
||||
|
||||
return seconds * 1000 + nanoSeconds / 1000 / 1000;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue