Add concurrently

This commit is contained in:
Ralex91
2024-02-08 16:32:05 +01:00
parent 31122b9d2f
commit 8a9b8df7d2
14 changed files with 252 additions and 298 deletions

View File

@@ -0,0 +1,13 @@
const convertTimeToPoint = (startTime, secondes) => {
let points = 1000
const actualTime = Date.now()
const tempsPasseEnSecondes = (actualTime - startTime) / 1000
points -= (1000 / secondes) * tempsPasseEnSecondes
points = Math.max(0, points)
return points
}
export default convertTimeToPoint