java.lang.Object
io.github.amsonix.molt.internal.reschiper.utils.TimeClock

public class TimeClock extends Object
A utility class for measuring elapsed time.
  • 构造器详细资料

    • TimeClock

      public TimeClock()
      Constructs a TimeClock and starts the timer.
  • 方法详细资料

    • getElapsedTime

      public String getElapsedTime()
      Gets the elapsed time since the TimeClock was constructed.
      返回:
      A string representing the elapsed time in a human-readable format (e.g., "1min 30s", "45s", "500ms").