Class TimeEstimate

java.lang.Object
me.gosimple.nbvcxz.scoring.TimeEstimate

public final class TimeEstimate extends Object
Author:
Adam Brusselback
  • Constructor Details

    • TimeEstimate

      public TimeEstimate()
  • Method Details

    • getTimeToCrack

      public static BigDecimal getTimeToCrack(Result result, String guess_type)
      Gets the estimated time to crack in seconds.
      Parameters:
      result - a Result object to estimate time to crack for.
      guess_type - a String representing the estimate type to get time to crack for (defined in Configuration.
      Returns:
      time in seconds estimated to crack as a BigDecimal.
    • getTimeToCrackFormatted

      public static String getTimeToCrackFormatted(Result result, String guess_type)
      Gets the estimated time to crack formatted as a string.
      Parameters:
      result - a Result object to estimate time to crack for.
      guess_type - a String representing the estimate type to get time to crack for (defined in Configuration.
      Returns:
      time estimated to crack as a String (instant, seconds, minutes, hours, days, months, years, centuries, infinite).