public static class Timings.LimboTiming extends Timings.Timing
| Constructor and Description |
|---|
LimboTiming() |
| Modifier and Type | Method and Description |
|---|---|
double |
avg() |
Timings.Timing |
begin()
Record current system timestamp and return this Timing instance.
|
Timings.Timing |
begin(boolean mainThread)
Record current system timestamp and return this Timing instance.
|
void |
close() |
String |
getDisplayName() |
Timings.Timing |
getTiming(String name)
Get Timing starting from 'this' Timing as root.
|
void |
setDisplayName(String displayName) |
isLeafNode, toStringpublic String getDisplayName()
getDisplayName in class Timings.Timingpublic void setDisplayName(String displayName)
setDisplayName in class Timings.Timingpublic Timings.Timing getTiming(String name)
Timings.TimingFor example, if 'this' Timing is "Some.Thing," any Timing made by this method will always start with "Some.Thing".
getTiming in class Timings.Timingname - the fully qualified name to extend from 'this' Timing.public Timings.Timing begin(boolean mainThread)
Timings.Timing
try(Timing t = Timings.getTiming("my.timing")){
Thread.sleep(10L);
}
begin in class Timings.TimingmainThread - mark it to indicate that the task ran by the main thread.public Timings.Timing begin()
Timings.Timing
try(Timing t = Timings.getTiming("my.timing")){
Thread.sleep(10L);
}
begin in class Timings.Timingpublic double avg()
avg in class Timings.Timingpublic void close()
close in interface AutoCloseableclose in class Timings.Timing