Use GlobalTime

This commit is contained in:
Jaby
2023-01-08 16:20:30 +01:00
committed by Jaby
parent 02e33d3eb2
commit c60b97a75e
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;