From 877fb5b93ada9b25b4d2f5ca5f69370fa345f1ac Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 16 Apr 2025 01:37:48 +0100 Subject: time: move to stl's clocks and move timer --- src/render/pass/SurfacePassElement.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/render/pass') diff --git a/src/render/pass/SurfacePassElement.hpp b/src/render/pass/SurfacePassElement.hpp index 1b6ddb0b..4d51f804 100644 --- a/src/render/pass/SurfacePassElement.hpp +++ b/src/render/pass/SurfacePassElement.hpp @@ -1,6 +1,7 @@ #pragma once #include "PassElement.hpp" #include +#include "../../helpers/time/Time.hpp" class CWLSurfaceResource; class CTexture; @@ -10,7 +11,7 @@ class CSurfacePassElement : public IPassElement { public: struct SRenderData { PHLMONITORREF pMonitor; - timespec* when = nullptr; + Time::steady_tp when = Time::steadyNow(); Vector2D pos, localPos; void* data = nullptr; -- cgit v1.2.3