Convert Timer IO

This commit is contained in:
2023-03-18 16:04:05 +01:00
parent 47484a8056
commit 33b5d4d3b7
4 changed files with 97 additions and 68 deletions

View File

@@ -66,7 +66,7 @@ namespace JabyEngine {
~HighResTime() = delete;
static TimeStamp get_time_stamp() {
return TimeStamp(HighResTime::global_counter_10ms, Timer_IO::Counter2.value.read(Timer_IO::CounterValue::Value));
return TimeStamp(HighResTime::global_counter_10ms, Timer_IO::Counter2.get_current_value());
}
};
#endif //JABYENGINE_USE_HIGH_PERCISION_TIMER