Package core.helpers

Class StopWatchHelper

java.lang.Object
core.helpers.StopWatchHelper

public class StopWatchHelper
extends Object
StopWatchHelper watch = StopWatchHelper.start(); // do something long passedTimeInMs = watch.time(); long passedTimeInSeconds = watch.time(TimeUnit.SECONDS);
Author:
ehsan matean
  • Method Details

    • start

      public static StopWatchHelper start()
      StopWatchHelper watch = Helper.start(); do something long passedTimeInMs = watch.time(); long passedTimeInSeconds = watch.time(TimeUnit.SECONDS);
      Returns:
    • reset

      public StopWatchHelper reset()
    • time

      public long time()
    • time

      public long time​(TimeUnit unit)