mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-27 12:16:21 +02:00
CmdExport: Measures JSON composition time under context.timer_render
This commit is contained in:
parent
e2f504e686
commit
fff27ffabe
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,9 @@ int CmdExport::execute (std::string& output)
|
|||
std::vector <Task> filtered;
|
||||
filter.subset (filtered);
|
||||
|
||||
// Export == render.
|
||||
context.timer_render.start ();
|
||||
|
||||
// Obey 'limit:N'.
|
||||
int rows = 0;
|
||||
int lines = 0;
|
||||
|
@ -97,6 +100,7 @@ int CmdExport::execute (std::string& output)
|
|||
if (json_array)
|
||||
output += "]\n";
|
||||
|
||||
context.timer_render.stop ();
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue