output elapsed time
This commit is contained in:
@@ -84,8 +84,9 @@ begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Output runtime data
|
# Output runtime data
|
||||||
|
start_time = Time.now
|
||||||
puts "| URL: #{wp_target.url}"
|
puts "| URL: #{wp_target.url}"
|
||||||
puts "| Started on #{Time.now.asctime}"
|
puts "| Started on #{start_time.asctime}"
|
||||||
puts
|
puts
|
||||||
|
|
||||||
wp_theme = wp_target.theme
|
wp_theme = wp_target.theme
|
||||||
@@ -366,8 +367,11 @@ begin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
stop_time = Time.now
|
||||||
puts
|
puts
|
||||||
puts "[+] Finished at #{Time.now.asctime}"
|
puts "[+] Finished at #{stop_time.asctime}"
|
||||||
|
elapsed = stop_time - start_time
|
||||||
|
puts("[+] Elapsed time: #{Time.at(elapsed).utc.strftime("%H:%M:%S")}")
|
||||||
exit() # must exit!
|
exit() # must exit!
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "[ERROR] #{e.message}"
|
puts "[ERROR] #{e.message}"
|
||||||
|
|||||||
Reference in New Issue
Block a user