diff --git a/map.js b/map.js index 84997c5..a5c1bf9 100644 --- a/map.js +++ b/map.js @@ -52,11 +52,11 @@ AFRAME.registerComponent("map", { } - this.XRStart = performance.now(); + this.XRStart = Date.now(); }); document.querySelector('a-scene').addEventListener('exit-vr', function () { - let d = Math.floor((performance.now() - this.XRStart)/1000); + let d = Math.floor((Date.now() - this.XRStart)/1000); let timeSpent = "unknown"; if (d < 30) timeSpent = "< 30 seconds";