xrd improvements

This commit is contained in:
2026-03-20 18:16:37 +01:00
parent 06f9fdf83c
commit 5ca98b993e
2 changed files with 106 additions and 99 deletions
+14
View File
@@ -0,0 +1,14 @@
import time
class Timer:
def __init__(self) -> None:
self.ctime = 0.0
self.reset()
def reset(self) -> float:
self.ctime = time.monotonic()
return self.ctime
def subtract(self, value: float) -> float:
self.ctime -= value
return self.ctime
def get_time(self) -> float:
return (time.monotonic()-self.ctime)