CmdExport: Measures JSON composition time under context.timer_render

This commit is contained in:
Paul Beckingham 2015-09-26 12:20:14 -04:00
parent e2f504e686
commit fff27ffabe

View file

@ -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;
}