mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks: Migrated to libshared Timer
This commit is contained in:
parent
f5d46a34aa
commit
81fce54fd9
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue