Update AnimationControl.cpp

This commit is contained in:
vczh
2024-02-26 03:43:02 -08:00
parent 9688e6bd4f
commit 3289f6dbd5
@@ -17,7 +17,7 @@ namespace demo
void AnimationControl::GlobalTimer() void AnimationControl::GlobalTimer()
{ {
auto time = DateTime::LocalTime(); auto time = DateTime::LocalTime();
if (time.totalMilliseconds - members->lastUpdateTime.totalMilliseconds >= 100) if (time.osMilliseconds - members->lastUpdateTime.osMilliseconds >= 100)
{ {
members->lastUpdateTime = time; members->lastUpdateTime = time;
if (auto renderer = element->GetRenderer()) if (auto renderer = element->GetRenderer())