Skip to content

Commit

Permalink
feat(app): display elapsed time for generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vogloblinsky committed Nov 7, 2016
1 parent c817d4d commit 14c5bfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ let pkg = require('../package.json'),
$configuration = new Configuration(),
$markdownengine = new MarkdownEngine(),
$ngdengine = new NgdEngine(),
$dependenciesEngine;
$dependenciesEngine,
startTime = new Date();

export namespace Application {

Expand Down Expand Up @@ -302,7 +303,8 @@ export namespace Application {
logger.error(errorMessage);
});
} else {
logger.info('Documentation generated in ' + program.output);
let finalTime = (new Date() - startTime) / 1000;
logger.info('Documentation generated in ' + program.output + 'in ' + finalTime + ' seconds');
}
};
$ngdengine.renderGraph(program.file, 'documentation/graph', 'p').then(() => {
Expand Down

0 comments on commit 14c5bfd

Please sign in to comment.