From 71d8fa55ab671ae152c420738b2d9d49f8f1106d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 5 Mar 2024 21:04:20 +0100 Subject: clean up timer & nanosecond includes --- test/critter.cpp | 3 +-- test/serializer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/critter.cpp b/test/critter.cpp index 939ae811..e75be7d9 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -5,13 +5,12 @@ #include "src/critter.hpp" #include "src/world.hpp" #include "src/wall-atlas.hpp" -#include "src/timer.hpp" +#include "src/nanosecond.inl" #include "src/log.hpp" #include "src/point.inl" #include "loader/loader.hpp" #include #include -// todo! find all places where singed division is used namespace floormat { diff --git a/test/serializer.cpp b/test/serializer.cpp index e85f7892..5179342c 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -7,7 +7,7 @@ #include "src/ground-atlas.hpp" #include "src/anim-atlas.hpp" #include "src/tile-iterator.hpp" -#include "src/timer.hpp" +#include "src/nanosecond.inl" #include namespace floormat { @@ -53,7 +53,7 @@ chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) auto& e = *w.make_object(w.make_id(), {ch, {K+3, K+1}}, door); const auto index = e.index(); const auto end = e.atlas->info().nframes-1; - constexpr Ns dt = Second / 60; + constexpr auto dt = Second / 60; fm_assert(e.frame == end); { auto& x = std::get(e.subtype); fm_assert(!x.active); -- cgit v1.2.3