TbStopWatch: methods for nanos added
This commit is contained in:
parent
24eca34576
commit
e2aa4be741
@ -54,9 +54,19 @@ public class TbStopWatch extends StopWatch {
|
|||||||
return getTotalTimeMillis();
|
return getTotalTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long stopAndGetTotalTimeNanos(){
|
||||||
|
stop();
|
||||||
|
return getLastTaskTimeNanos();
|
||||||
|
}
|
||||||
|
|
||||||
public long stopAndGetLastTaskTimeMillis(){
|
public long stopAndGetLastTaskTimeMillis(){
|
||||||
stop();
|
stop();
|
||||||
return getLastTaskTimeMillis();
|
return getLastTaskTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long stopAndGetLastTaskTimeNanos(){
|
||||||
|
stop();
|
||||||
|
return getLastTaskTimeNanos();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user