@FunctionalInterface public interface NanoSampler
| Modifier and Type | Method and Description |
|---|---|
void |
sampleNanos(long durationNs)
Records a sample at the provided
durationNs. |
void sampleNanos(long durationNs)
durationNs. The duration is given in nanoseconds.
This method must only be called by a single thread. If called from several threads or provided negative durationNs, silently provides an unspecified result.
durationNs - time (non-negative)Copyright © 2022. All rights reserved.