public static BigDecimal getTimeToCrack ( final Result result , final String guess_type ) { BigDecimal guess_per_second = BigDecimal . valueOf ( result . getConfiguration ( ) . getGuessTypes ( ) . get ( guess_type ) ) ; return result . getGuesses ( ) . divide ( guess_per_second , 0 , BigDecimal . ROUND_FLOOR ) ; }
Gets the estimated time to crack in seconds .