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 Summary
Modifier and Type Method Description StopWatchHelperreset()static StopWatchHelperstart()StopWatchHelper watch = Helper.start(); do something long passedTimeInMs = watch.time(); long passedTimeInSeconds = watch.time(TimeUnit.SECONDS);longtime()longtime(TimeUnit unit)
-
Method Details
-
start
StopWatchHelper watch = Helper.start(); do something long passedTimeInMs = watch.time(); long passedTimeInSeconds = watch.time(TimeUnit.SECONDS);- Returns:
-
reset
-
time
public long time() -
time
-