From 9e04e053dfde09f85f051ca1798140decac7623c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 23 Aug 2021 12:07:18 +0200 Subject: [PATCH] rulegen:: do not include conversion time --- devmods/rulegen-tests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devmods/rulegen-tests.cpp b/devmods/rulegen-tests.cpp index 18d0b5dc..12d9d46f 100644 --- a/devmods/rulegen-tests.cpp +++ b/devmods/rulegen-tests.cpp @@ -489,6 +489,16 @@ void test_current(string tesname) { // make print_rules() not crash in case of a conversion error treestates.clear(); + /* we do not want to include the conversion time */ + if(!arb::in()) try { + arb::convert::convert(); + arb::convert::activate(); + } + catch(hr_exception& e) { + println(hlog, "CSV; failed to convert ", tesname); + return; + } + int tstart = SDL_GetTicks(); auto begin = std::chrono::high_resolution_clock::now(); try {