Use GlobalTime

This commit is contained in:
Jaby
2023-01-08 16:20:30 +01:00
parent 3c1d965cc5
commit 149105a3fa
8 changed files with 55 additions and 12 deletions

View File

@@ -13,14 +13,14 @@ namespace JabyEngine {
public:
constexpr size_t milliseconds_to(const TimeStamp& ts) const {
return (ts.value - this->value);
return (ts.value - this->value)*10;
}
friend class GlobalTime;
};
private:
static size_t global_counter;
static volatile size_t global_counter;
public:
GlobalTime() = delete;