Class CodeTimer

java.lang.Object
org.javarosa.core.util.CodeTimer

@Deprecated
public class CodeTimer
extends Object
Deprecated.
Use StopWatch instead
Warning: This class is unused and should remain that way. It will be removed in a future release. Helps with timing an operation and logging the time
  • Constructor Details

    • CodeTimer

      @Deprecated public CodeTimer​(String operation)
      Deprecated.
      Use StopWatch instead
      Creates a CodeTimer for the specified operation
      Parameters:
      operation - the name of the operation, such as “parsing form”
  • Method Details

    • logDone

      @Deprecated public void logDone()
      Deprecated.
      Use StopWatch instead
      Calculates and logs the time since this object was constructed.
    • logDone

      @Deprecated public void logDone​(PrintStream stream)
      Deprecated.
      Use StopWatch instead
      Calculates and logs the time since this object was constructed.
      Parameters:
      stream - the PrintStream onto which to log the message
    • setEnabled

      @Deprecated public static void setEnabled​(boolean enabled)
      Deprecated.
      Use StopWatch instead