From ff646738fc9463031988466c0a77cf9ff5a3573d Mon Sep 17 00:00:00 2001 From: kaatt Date: Fri, 30 Jan 2015 01:32:00 +0530 Subject: [PATCH] Shows time after initial generation --- lib/jekyll/commands/build.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/commands/build.rb b/lib/jekyll/commands/build.rb index 536324fc..bf1975c4 100644 --- a/lib/jekyll/commands/build.rb +++ b/lib/jekyll/commands/build.rb @@ -48,6 +48,7 @@ module Jekyll # # Returns nothing. def build(site, options) + t = Time.now source = options['source'] destination = options['destination'] full_build = options['full_rebuild'] @@ -56,7 +57,7 @@ module Jekyll Jekyll.logger.info "Incremental build:", (full_build ? "disabled" : "enabled") Jekyll.logger.info "Generating..." process_site(site) - Jekyll.logger.info "", "done." + Jekyll.logger.info "", "done in #{Time.now - t} seconds." end # Private: Watch for file changes and rebuild the site.