Package org.apache.ignite.internal.util
Class GridTimer
- java.lang.Object
-
- org.apache.ignite.internal.util.GridTimer
-
public class GridTimer extends Object
Timer to use mostly for debugging purposes.
-
-
Method Detail
-
stop
public long stop()
Stops this timer.- Returns:
- Duration.
-
stopx
public boolean stopx()
Stops this timer.- Returns:
Trueif didn't max out.
-
maxedOut
public boolean maxedOut()
- Returns:
Trueif maxed out.
-
duration
public long duration()
- Returns:
- Timer duration.
-
endTime
public long endTime()
- Returns:
- End time (
-1if not stopped).
-
startTime
public long startTime()
- Returns:
- Start time.
-
threshold
public long threshold()
- Returns:
- Max duration threshold.
-
name
public String name()
- Returns:
- Timer name.
-
-