Package jp.vmi.selenium.selenese.utils
Class StopWatch
- java.lang.Object
-
- jp.vmi.selenium.selenese.utils.StopWatch
-
public class StopWatch extends Object
Record log message.
-
-
Constructor Summary
Constructors Constructor Description StopWatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()End time.voidend(long currentTimeMillis)End time.longgetDuration()Get milli-second of duration.StringgetDurationString()Get human readable duration string.longgetEndTime()Get end time of UTC as milli second.StringgetEndTimeString()Get human readable end time string.longgetStartTime()Get start time of UTC as milli second.StringgetStartTimeString()Get human readable start time string.voidstart()Start time.voidstart(long currentTimeMillis)Start time.
-
-
-
Method Detail
-
start
public void start()
Start time.
-
start
public void start(long currentTimeMillis)
Start time.- Parameters:
currentTimeMillis- System.currentTimeMillis()
-
end
public void end()
End time.
-
end
public void end(long currentTimeMillis)
End time.- Parameters:
currentTimeMillis- System.currentTimeMillis()
-
getStartTime
public long getStartTime()
Get start time of UTC as milli second.- Returns:
- start time.
-
getEndTime
public long getEndTime()
Get end time of UTC as milli second.- Returns:
- end time.
-
getDuration
public long getDuration()
Get milli-second of duration.- Returns:
- duration (ms)
-
getDurationString
public String getDurationString()
Get human readable duration string.- Returns:
- duration string.
-
getStartTimeString
public String getStartTimeString()
Get human readable start time string.- Returns:
- start time string
-
getEndTimeString
public String getEndTimeString()
Get human readable end time string.- Returns:
- end time string
-
-