Class TimeEstimate

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

public final class TimeEstimate
extends java.lang.Object
Author:
Adam Brusselback
  • Constructor Summary

    Constructors 
    Constructor Description
    TimeEstimate()  
  • Method Summary

    Modifier and Type Method Description
    static java.math.BigDecimal getTimeToCrack​(Result result, java.lang.String guess_type)
    Gets the estimated time to crack in seconds.
    static java.lang.String getTimeToCrackFormatted​(Result result, java.lang.String guess_type)
    Gets the estimated time to crack formatted as a string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTimeToCrack

      public static java.math.BigDecimal getTimeToCrack​(Result result, java.lang.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 java.lang.String getTimeToCrackFormatted​(Result result, java.lang.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).