mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-08 05:20:39 -06:00
pattern: Display evaluation time when pattern finished running
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: fb3059bfaa...dde9ab27bd
@@ -18,7 +18,7 @@
|
||||
#include <content/helpers/provider_extra_data.hpp>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <ranges>
|
||||
#include <chrono>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
@@ -626,8 +626,14 @@ namespace hex::plugin::builtin {
|
||||
this->m_runningEvaluators--;
|
||||
|
||||
this->m_lastEvaluationProcessed = false;
|
||||
|
||||
this->m_lastEvaluationLog.emplace_back(
|
||||
pl::core::LogConsole::Level::Info,
|
||||
hex::format("Evaluation took {}", runtime->getLastRunningTime())
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
this->m_lastEvaluationResult = runtime->executeString(code, envVars, inVariables);
|
||||
if (!this->m_lastEvaluationResult) {
|
||||
this->m_lastEvaluationError = runtime->getError();
|
||||
|
||||
Reference in New Issue
Block a user