Method: Hardsploit_GUI#callbackProgress

Defined in:
lib/hardsploit.rb

#callbackProgress(percent:, startTime:, endTime:) ⇒ Object



60
61
62
63
64
65
66
67
68
69
# File 'lib/hardsploit.rb', line 60

def callbackProgress(percent:,startTime:,endTime:)
  $pgb.update_value(percent) unless $pgb.nil?
  $app.processEvents
  if percent == 100
    duration = (endTime-startTime).round(2)
    $pgb.display_time("Total duration: #{duration} second(s)")
  end
	#puts "Progress : #{percent}%  Start@ #{startTime}  Stop@ #{endTime}"
	#puts "Elasped time #{(endTime-startTime).round(4)} sec"
end