mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Extensions: Migrated to libshared Timer
This commit is contained in:
parent
3758d74c56
commit
29d155afd7
1 changed files with 14 additions and 1 deletions
|
@ -29,7 +29,9 @@
|
|||
#include <FS.h>
|
||||
#include <Timer.h>
|
||||
#include <shared.h>
|
||||
#include <timew.h>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -83,8 +85,19 @@ int Extensions::callExtension (
|
|||
|
||||
if (_debug)
|
||||
{
|
||||
Timer t ("Extension: execute (" + script + ")");
|
||||
Timer t;
|
||||
status = execute (script, {}, inputStr, outputStr);
|
||||
t.stop ();
|
||||
|
||||
std::stringstream s;
|
||||
s << "Timer Extension: execut ("
|
||||
<< script
|
||||
<< ") "
|
||||
<< std::setprecision (6)
|
||||
<< std::fixed
|
||||
<< t.total_us () / 1000000.0
|
||||
<< " sec\n";
|
||||
::debug (s.str ());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue