public static class LongTaskTimer.Sample extends Object
Constructor and Description |
---|
Sample(LongTaskTimer timer,
long task) |
Modifier and Type | Method and Description |
---|---|
double |
duration(TimeUnit unit) |
long |
stop()
Records the duration of the operation
|
public Sample(LongTaskTimer timer, long task)
public long stop()
public double duration(TimeUnit unit)
Copyright © 2019. All rights reserved.