Ajout d'un commentaire concernant time.monotonic()
This commit is contained in:
@@ -64,6 +64,8 @@ class QueueManager:
|
|||||||
|
|
||||||
self.on_update(f"position:{join.get('position')}:{join.get('queueSize')}")
|
self.on_update(f"position:{join.get('position')}:{join.get('queueSize')}")
|
||||||
|
|
||||||
|
""" time.monotonic() est insensible aux changements d'heure système (heure d'été, NTP, etc.),
|
||||||
|
ce qui le rend plus fiable pour mesurer des intervalles."""
|
||||||
self._last_refresh = time.monotonic() # ← démarre le compteur après le join
|
self._last_refresh = time.monotonic() # ← démarre le compteur après le join
|
||||||
|
|
||||||
while self._running:
|
while self._running:
|
||||||
|
|||||||
Reference in New Issue
Block a user