mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-29 10:03:25 +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;
|
std::vector <Task> filtered;
|
||||||
filter.subset (filtered);
|
filter.subset (filtered);
|
||||||
|
|
||||||
|
// Export == render.
|
||||||
|
context.timer_render.start ();
|
||||||
|
|
||||||
// Obey 'limit:N'.
|
// Obey 'limit:N'.
|
||||||
int rows = 0;
|
int rows = 0;
|
||||||
int lines = 0;
|
int lines = 0;
|
||||||
|
@ -97,6 +100,7 @@ int CmdExport::execute (std::string& output)
|
||||||
if (json_array)
|
if (json_array)
|
||||||
output += "]\n";
|
output += "]\n";
|
||||||
|
|
||||||
|
context.timer_render.stop ();
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue