From d5cb31922e5fbf1c93f4226c6cfa94ddce75db2b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 13 Nov 2016 13:07:09 -0500 Subject: [PATCH] Hooks: Migrated to libshared Timer --- src/Hooks.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Hooks.cpp b/src/Hooks.cpp index 79815f787..d27f8cac0 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -555,11 +555,9 @@ int Hooks::callHookScript ( std::string outputStr; if (_debug >= 2) { - Timer timer_per_hook("Hooks::execute (" + script + ")"); - timer_per_hook.start(); - + Timer timer; status = execute (script, args, inputStr, outputStr); - context.debug(timer_per_hook.str ()); + context.debugTiming (format ("Hooks::execute ({1})", script), timer); } else status = execute (script, args, inputStr, outputStr);